class IniParse::Lines::AnonymousSection

Stores options which appear at the beginning of a file, without a preceding section.

Public Class Methods

new() click to toggle source
Calls superclass method IniParse::Lines::Section::new
# File lib/iniparse/lines.rb, line 208
def initialize
  super('__anonymous__')
end

Public Instance Methods

to_ini() click to toggle source
Calls superclass method IniParse::Lines::Section#to_ini
# File lib/iniparse/lines.rb, line 212
def to_ini
  # Remove the leading space which is added by joining the blank line
  # content with the options.
  super.gsub(/\A\n/, '')
end

Private Instance Methods

line_contents() click to toggle source
# File lib/iniparse/lines.rb, line 222
def line_contents
  ''
end