Created
April 12, 2012 14:32
-
-
Save caius/2367731 to your computer and use it in GitHub Desktop.
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
class << self | |
attr_accessor :config | |
end | |
def self.app | |
Application.new classes | |
end | |
def self.classes | |
@classes ||= [] | |
end | |
def self.inherited(subclass) | |
classes << subclass | |
super | |
end | |
def self.share &block | |
self.config = block | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment