Class: Fluent::Plugin::MultiConditionSelectorOutput::RubyPlaceholderExpander::CleanroomExpander
- Inherits:
-
Object
- Object
- Fluent::Plugin::MultiConditionSelectorOutput::RubyPlaceholderExpander::CleanroomExpander
- Defined in:
- lib/fluent/plugin/out_multi_condition_selector.rb
Instance Method Summary collapse
- #expand(__str_to_eval__, tag, time, record, tag_parts, tag_prefix, tag_suffix, hostname, force_stringify = true) ⇒ Object
-
#method_missing(name) ⇒ Object
for old version compatibility.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
for old version compatibility
342 343 344 345 346 347 348 349 350 |
# 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 |
Instance Method Details
#expand(__str_to_eval__, tag, time, record, tag_parts, tag_prefix, tag_suffix, hostname, force_stringify = true) ⇒ Object
336 337 338 339 |
# File 'lib/fluent/plugin/out_multi_condition_selector.rb', line 336 def (__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 |