Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Forked from stevemorris/gist:1232537
Created September 21, 2011 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save practicingruby/1232567 to your computer and use it in GitHub Desktop.
Save practicingruby/1232567 to your computer and use it in GitHub Desktop.
Circuitry
module Circuitry
extend self
def []=(name, definition)
circuits[name] = definition
end
def [](name)
circuits[name]
end
private
def circuits
@circuits ||= {}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment