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