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