Class: Puppet::Settings::IniFile::DefaultSection Private

Inherits:
SectionLine show all
Defined in:
lib/puppet/settings/ini_file.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Attributes inherited from SectionLine

#name, #prefix, #suffix

Attributes included from LineNumber

#previous

Instance Method Summary collapse

Methods inherited from SectionLine

#to_s

Methods included from LineNumber

#line_number

Constructor Details

#initializeDefaultSection

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DefaultSection.



217
218
219
220
# File 'lib/puppet/settings/ini_file.rb', line 217

def initialize
  @write_sectionline = false
  super("", DEFAULT_SECTION_NAME, "")
end

Instance Attribute Details

#write_sectionlineObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



215
216
217
# File 'lib/puppet/settings/ini_file.rb', line 215

def write_sectionline
  @write_sectionline
end

Instance Method Details

#write(fh) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



222
223
224
225
226
# File 'lib/puppet/settings/ini_file.rb', line 222

def write(fh)
  if @write_sectionline
    super(fh)
  end
end