Class: Disposable::Twin::Definition
- Inherits:
-
Declarative::Definitions::Definition
- Object
- Declarative::Definitions::Definition
- Disposable::Twin::Definition
- Defined in:
- lib/disposable/twin/definitions.rb
Defined Under Namespace
Classes: Each
Constant Summary collapse
- Filter =
:private:
->(definitions, ) do definitions.collect do |dfn| next if [:exclude] and [:exclude].include?(dfn[:name]) next if [:scalar] and dfn[:collection] next if [:collection] and ! dfn[:collection] next if [:twin] and ! dfn[:nested] dfn end.compact end
Instance Method Summary collapse
Instance Method Details
#getter ⇒ Object
3 4 5 |
# File 'lib/disposable/twin/definitions.rb', line 3 def getter self[:name] end |
#setter ⇒ Object
7 8 9 |
# File 'lib/disposable/twin/definitions.rb', line 7 def setter "#{self[:name]}=" end |