Method: Configurable::ConfigTypes::ObjectType.subclass
- Defined in:
- lib/configurable/config_types/object_type.rb
.subclass(*matchers, &caster) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/configurable/config_types/object_type.rb', line 13 def subclass(*matchers, &caster) subclass = Class.new(self) subclass.matches(*matchers) subclass.cast(&caster) subclass end |