Class: Fluent::RecordReformerOutput::RubyPlaceholderExpander::CleanroomExpander
- Inherits:
-
Object
- Object
- Fluent::RecordReformerOutput::RubyPlaceholderExpander::CleanroomExpander
- Defined in:
- lib/fluent/plugin/out_record_reformer.rb
Instance Method Summary collapse
- #expand(__str_to_eval__, tag, time, record, tag_parts, tag_prefix, tag_suffix, hostname) ⇒ 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
340 341 342 343 344 345 346 347 |
# File 'lib/fluent/plugin/out_record_reformer.rb', line 340 def method_missing(name) key = name.to_s 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) ⇒ Object
333 334 335 336 337 |
# File 'lib/fluent/plugin/out_record_reformer.rb', line 333 def (__str_to_eval__, tag, time, record, tag_parts, tag_prefix, tag_suffix, hostname) = tag_parts # for old version compatibility @record = record # for old version compatibility instance_eval(__str_to_eval__) end |