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