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