Method: Fluent::Config::YamlParser::SectionBuilder#to_s
- Defined in:
- lib/fluent/config/yaml_parser/section_builder.rb
#to_s ⇒ Object
21 22 23 24 25 26 27 28 29 |
# File 'lib/fluent/config/yaml_parser/section_builder.rb', line 21 def to_s indent = ' ' * indent_size if arg && !arg.to_s.empty? "#{indent}<#{name} #{arg}>\n#{body}\n#{indent}</#{name}>" else "#{indent}<#{name}>\n#{body}\n#{indent}</#{name}>" end end |