Class: Expressir::Liquid::SupertypeExpressions::BinarySupertypeExpressionDrop

Inherits:
Expressir::Liquid::SupertypeExpressionDrop show all
Defined in:
lib/expressir/liquid/supertype_expressions/binary_supertype_expression_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

Constructor Details

#initialize(model) ⇒ BinarySupertypeExpressionDrop

Returns a new instance of BinarySupertypeExpressionDrop.



7
8
9
10
# File 'lib/expressir/liquid/supertype_expressions/binary_supertype_expression_drop.rb', line 7

def initialize(model)
  @model = model
  super
end

Instance Method Details

#operand1Object



16
17
18
# File 'lib/expressir/liquid/supertype_expressions/binary_supertype_expression_drop.rb', line 16

def operand1
  drop_klass_by_model(@model.operand1)
end

#operand2Object



20
21
22
# File 'lib/expressir/liquid/supertype_expressions/binary_supertype_expression_drop.rb', line 20

def operand2
  drop_klass_by_model(@model.operand2)
end

#operatorObject



12
13
14
# File 'lib/expressir/liquid/supertype_expressions/binary_supertype_expression_drop.rb', line 12

def operator
  @model.operator
end