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


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

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.


213
214
215
# File 'lib/puppet/settings/ini_file.rb', line 213

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.


220
221
222
223
224
# File 'lib/puppet/settings/ini_file.rb', line 220

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