Class: Fluent::Config::YamlParser::SectionBodyBuilder::Row

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indentObject

Returns the value of attribute indent

Returns:

  • (Object)

    the current value of indent



62
63
64
# File 'lib/fluent/config/yaml_parser/section_builder.rb', line 62

def indent
  @indent
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



62
63
64
# File 'lib/fluent/config/yaml_parser/section_builder.rb', line 62

def key
  @key
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



62
63
64
# File 'lib/fluent/config/yaml_parser/section_builder.rb', line 62

def value
  @value
end

Instance Method Details

#to_sObject



63
64
65
# File 'lib/fluent/config/yaml_parser/section_builder.rb', line 63

def to_s
  "#{indent}#{key} #{value}"
end