Class: Expressir::Liquid::References::AttributeReferenceDrop
- Inherits:
-
Expressir::Liquid::ReferenceDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::ReferenceDrop
- Expressir::Liquid::References::AttributeReferenceDrop
- Defined in:
- lib/expressir/liquid/references/attribute_reference_drop.rb
Instance Method Summary collapse
- #attribute ⇒ Object
-
#initialize(model) ⇒ AttributeReferenceDrop
constructor
A new instance of AttributeReferenceDrop.
- #ref ⇒ Object
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model) ⇒ AttributeReferenceDrop
Returns a new instance of AttributeReferenceDrop.
7 8 9 10 |
# File 'lib/expressir/liquid/references/attribute_reference_drop.rb', line 7 def initialize(model) @model = model super end |
Instance Method Details
#attribute ⇒ Object
16 17 18 |
# File 'lib/expressir/liquid/references/attribute_reference_drop.rb', line 16 def attribute drop_klass_by_model(@model.attribute) end |
#ref ⇒ Object
12 13 14 |
# File 'lib/expressir/liquid/references/attribute_reference_drop.rb', line 12 def ref drop_klass_by_model(@model.ref) end |