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



491
492
493
494
# File 'lib/logstash/config/config_ast.rb', line 491

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