Class: Expressir::Liquid::SupertypeExpressions::OneofSupertypeExpressionDrop
- Inherits:
-
Expressir::Liquid::SupertypeExpressionDrop
- Object
- Liquid::Drop
- ModelElementDrop
- Expressir::Liquid::SupertypeExpressionDrop
- Expressir::Liquid::SupertypeExpressions::OneofSupertypeExpressionDrop
- Defined in:
- lib/expressir/liquid/supertype_expressions/oneof_supertype_expression_drop.rb
Instance Method Summary collapse
-
#initialize(model) ⇒ OneofSupertypeExpressionDrop
constructor
A new instance of OneofSupertypeExpressionDrop.
- #operands ⇒ Object
Methods inherited from ModelElementDrop
Constructor Details
#initialize(model) ⇒ OneofSupertypeExpressionDrop
Returns a new instance of OneofSupertypeExpressionDrop.
7 8 9 10 |
# File 'lib/expressir/liquid/supertype_expressions/oneof_supertype_expression_drop.rb', line 7 def initialize(model) @model = model super end |
Instance Method Details
#operands ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/expressir/liquid/supertype_expressions/oneof_supertype_expression_drop.rb', line 12 def operands return [] unless @model.operands @model.operands.map do |item| drop_klass_by_model(item) end end |