Class: Bound::BoundClass::NestedAttribute
- Inherits:
-
Object
- Object
- Bound::BoundClass::NestedAttribute
- Defined in:
- lib/bound.rb
Defined Under Namespace
Classes: ArrayAssigner, ValueAssigner
Instance Method Summary collapse
-
#initialize(bound_definition) ⇒ NestedAttribute
constructor
A new instance of NestedAttribute.
- #resolve(bound_arguments) ⇒ Object
Constructor Details
#initialize(bound_definition) ⇒ NestedAttribute
Returns a new instance of NestedAttribute.
80 81 82 83 84 85 86 |
# File 'lib/bound.rb', line 80 def initialize(bound_definition) if bound_definition.kind_of?(Array) @assigner = ArrayAssigner.new(bound_definition) else @assigner = ValueAssigner.new(bound_definition) end end |
Instance Method Details
#resolve(bound_arguments) ⇒ Object
88 89 90 |
# File 'lib/bound.rb', line 88 def resolve(bound_arguments) @assigner.resolve(bound_arguments) end |