Class: Definition::Types::Each
- Defined in:
- lib/definition/types/each.rb
Defined Under Namespace
Classes: Conformer
Instance Attribute Summary collapse
-
#item_definition ⇒ Object
Returns the value of attribute item_definition.
Attributes inherited from Base
Instance Method Summary collapse
- #conform(value) ⇒ Object
-
#initialize(name, definition:) ⇒ Each
constructor
A new instance of Each.
Methods inherited from Base
Constructor Details
#initialize(name, definition:) ⇒ Each
Returns a new instance of Each.
10 11 12 13 |
# File 'lib/definition/types/each.rb', line 10 def initialize(name, definition:) self.item_definition = definition super(name) end |
Instance Attribute Details
#item_definition ⇒ Object
Returns the value of attribute item_definition.
8 9 10 |
# File 'lib/definition/types/each.rb', line 8 def item_definition @item_definition end |