Class: Expressir::Liquid::Declarations::ConstantDrop
- Inherits:
-
Expressir::Liquid::DeclarationDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::DeclarationDrop
- Expressir::Liquid::Declarations::ConstantDrop
- Includes:
- IdentifierDrop
- Defined in:
- lib/expressir/liquid/declarations/constant_drop.rb
Instance Method Summary collapse
- #expression ⇒ Object
-
#initialize(model) ⇒ ConstantDrop
constructor
A new instance of ConstantDrop.
- #type ⇒ Object
Methods included from IdentifierDrop
#id, #initialize_identifier, #remark_items, #remarks, #source
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model) ⇒ ConstantDrop
Returns a new instance of ConstantDrop.
9 10 11 12 13 |
# File 'lib/expressir/liquid/declarations/constant_drop.rb', line 9 def initialize(model) @model = model initialize_identifier(@model) super end |
Instance Method Details
#expression ⇒ Object
19 20 21 |
# File 'lib/expressir/liquid/declarations/constant_drop.rb', line 19 def expression drop_klass_by_model(@model.expression) end |
#type ⇒ Object
15 16 17 |
# File 'lib/expressir/liquid/declarations/constant_drop.rb', line 15 def type drop_klass_by_model(@model.type) end |