Class: LogStash::Template

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/logstash/string_interpolation.rb

Instance Method Summary collapse

Constructor Details

#initializeTemplate

Returns a new instance of Template.



75
76
77
# File 'lib/logstash/string_interpolation.rb', line 75

def initialize
  @nodes = []
end

Instance Method Details

#evaluate(event) ⇒ Object



79
80
81
# File 'lib/logstash/string_interpolation.rb', line 79

def evaluate(event)
  @nodes.collect { |node| node.evaluate(event) }.join
end