Sha256: 8f2dca1d697a2fcdf082b7519efa097a9ee59c7eb11cd5de771a89e738689940
Contents?: true
Size: 220 Bytes
Versions: 3
Compression:
Stored size: 220 Bytes
Contents
module Amoeba module Macros extend self def list @list ||= {} end def add(klass) @list ||= {} key = klass.name.demodulize.underscore.to_sym @list[key] = klass end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
amoeba-3.2.0 | lib/amoeba/macros.rb |
amoeba-3.1.0 | lib/amoeba/macros.rb |
amoeba-3.0.0 | lib/amoeba/macros.rb |