Class: Fluent::Config::YamlParser::FluentValue::JsonValue

Inherits:
Struct
  • Object
show all
Defined in:
lib/fluent/config/yaml_parser/fluent_value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valObject

Returns the value of attribute val

Returns:

  • (Object)

    the current value of val



21
22
23
# File 'lib/fluent/config/yaml_parser/fluent_value.rb', line 21

def val
  @val
end

Instance Method Details

#to_elementObject



26
27
28
# File 'lib/fluent/config/yaml_parser/fluent_value.rb', line 26

def to_element
  to_s
end

#to_sObject



22
23
24
# File 'lib/fluent/config/yaml_parser/fluent_value.rb', line 22

def to_s
  val.to_json
end