Class: Fluent::Config::YamlParser::FluentValue::StringValue
- Inherits:
-
Struct
- Object
- Struct
- Fluent::Config::YamlParser::FluentValue::StringValue
- Defined in:
- lib/fluent/config/yaml_parser/fluent_value.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#val ⇒ Object
Returns the value of attribute val.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
31 32 33 |
# File 'lib/fluent/config/yaml_parser/fluent_value.rb', line 31 def context @context end |
#val ⇒ Object
Returns the value of attribute val
31 32 33 |
# File 'lib/fluent/config/yaml_parser/fluent_value.rb', line 31 def val @val end |
Instance Method Details
#to_element ⇒ Object
40 41 42 |
# File 'lib/fluent/config/yaml_parser/fluent_value.rb', line 40 def to_element to_s end |
#to_s ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/fluent/config/yaml_parser/fluent_value.rb', line 32 def to_s context.instance_eval("\"#{val}\"") rescue Fluent::SetNil => _ '' rescue Fluent::SetDefault => _ ':default' end |