Module: Fiveruns::Dash::Typable::ClassMethods
- Defined in:
- lib/fiveruns/dash/typable.rb
Instance Method Summary collapse
Instance Method Details
#inherited(klass) ⇒ Object
17 18 19 |
# File 'lib/fiveruns/dash/typable.rb', line 17 def inherited(klass) types[klass.__send__("#{name.demodulize.underscore}_type")] = klass end |
#types ⇒ Object
21 22 23 |
# File 'lib/fiveruns/dash/typable.rb', line 21 def types @types ||= {} end |