Class: LogStash::Config::AST::MethodCall

Inherits:
Node
  • Object
show all
Defined in:
lib/logstash/config/config_ast.rb

Instance Method Summary collapse

Methods inherited from Node

#text_value_for_comments

Instance Method Details

#compileObject



473
474
475
476
# File 'lib/logstash/config/config_ast.rb', line 473

def compile
  arguments = recursive_inject { |e| [String, Number, Selector, Array, MethodCall].any? { |c| e.is_a?(c) } }
  return "#{method.text_value}(" << arguments.collect(&:compile).join(", ") << ")"
end