-
-
Save rfunduk/1149464 to your computer and use it in GitHub Desktop.
Code snippets for http://ryanfunduk.com/ruby-library-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Comfy | |
class Database | |
# we'll use some other Comfy:: classes here | |
include Comfy | |
def initialize( name ) | |
# setup the instance using 'name' | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'comfy/config' | |
require 'comfy/database' | |
require 'comfy/document' | |
require 'comfy/view' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'rest_client' | |
require 'json' | |
$:.unshift( File.expand_path( __FILE__ ) ) | |
require 'comfy/config' | |
require 'core_ext/date_time' | |
require 'helpers/rcw' | |
require 'comfy/exceptions' | |
require 'comfy/response' | |
require 'comfy/database' | |
require 'comfy/document' | |
require 'comfy/view' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment