Module: Mojito::Controllers::Entities::ClassMethods
- Defined in:
- lib/mojito/controllers/entities.rb
Instance Method Summary collapse
Instance Method Details
#type(t, &block) ⇒ Object
22 23 24 25 26 |
# File 'lib/mojito/controllers/entities.rb', line 22 def type(t, &block) tc = TypeConfiguration.new t tc.instance_exec &block if block types[t] = tc end |
#types ⇒ Object
18 19 20 |
# File 'lib/mojito/controllers/entities.rb', line 18 def types @types ||= {} end |