class Fluent::Plugin::MultiConditionSelectorOutput::RubyPlaceholderExpander::CleanroomExpander
Public Instance Methods
expand(__str_to_eval__, tag, time, record, tag_parts, tag_prefix, tag_suffix, hostname, force_stringify = true)
click to toggle source
# File lib/fluent/plugin/out_multi_condition_selector.rb, line 336 def expand(__str_to_eval__, tag, time, record, tag_parts, tag_prefix, tag_suffix, hostname, force_stringify = true) Thread.current[:record_reformer_record] = record # for old version compatibility instance_eval(__str_to_eval__) end
method_missing(name)
click to toggle source
for old version compatibility
# File lib/fluent/plugin/out_multi_condition_selector.rb, line 342 def method_missing(name) key = name.to_s record = Thread.current[:record_reformer_record] if record.has_key?(key) record[key] else raise NameError, "undefined local variable or method `#{key}'" end end