lib/dotini/section.rb
# Represents the section as a string
Represents the section as a string
Represents the section as a string
def to_s
      buffer = StringIO.new
      buffer << "[#{name}]\n" unless name.nil?
      key_value_pairs.each do |pair|
        buffer << pair.to_s
      end
      buffer.string
    end
def to_s buffer = StringIO . new buffer << "[#{name}]\n" unless name . nil? key_value_pairs . each do | pair | buffer << pair . to_s end buffer . string end
Represents the section as a string
Represents the section as a string