Class: Expressir::Liquid::Statements::CompoundDrop

Inherits:
Expressir::Liquid::StatementDrop show all
Defined in:
lib/expressir/liquid/statements/compound_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

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

#statementsObject



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