Class: Expressir::Liquid::Expressions::FunctionCallDrop

Inherits:
Expressir::Liquid::ExpressionDrop show all
Defined in:
lib/expressir/liquid/expressions/function_call_drop.rb

Instance Method Summary collapse

Methods inherited from ModelElementDrop

#_class, #file, #source

Constructor Details

#initialize(model) ⇒ FunctionCallDrop

Returns a new instance of FunctionCallDrop.



7
8
9
10
# File 'lib/expressir/liquid/expressions/function_call_drop.rb', line 7

def initialize(model)
  @model = model
  super
end

Instance Method Details

#functionObject



12
13
14
# File 'lib/expressir/liquid/expressions/function_call_drop.rb', line 12

def function
  drop_klass_by_model(@model.function)
end

#parametersObject



16
17
18
19
20
21
22
# File 'lib/expressir/liquid/expressions/function_call_drop.rb', line 16

def parameters
  return [] unless @model.parameters

  @model.parameters.map do |item|
    drop_klass_by_model(item)
  end
end