Class: Puppet::Settings::IniFile::Line Private

Inherits:
Struct
  • Object
show all
Includes:
LineNumber
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 included from LineNumber

#previous

Instance Method Summary collapse

Methods included from LineNumber

#line_number

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text


172
173
174
# File 'lib/puppet/settings/ini_file.rb', line 172

def text
  @text
end

Instance Method Details

#to_sObject

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.


175
176
177
# File 'lib/puppet/settings/ini_file.rb', line 175

def to_s
  text
end

#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.


179
180
181
# File 'lib/puppet/settings/ini_file.rb', line 179

def write(fh)
  fh.puts(to_s)
end