Created
September 21, 2011 16:25
-
-
Save stevemorris/1232537 to your computer and use it in GitHub Desktop.
Circuitry
This file contains hidden or 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 Circuitry | |
extend self | |
attr_reader :circuits | |
@circuits = {} | |
def []=(name, definition) | |
@circuits[name] ||= definition | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment