Class: Puppet::Settings::IniFile::SettingLine 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

#infixObject

Returns the value of attribute infix

Returns:

  • (Object)

    the current value of infix



139
140
141
# File 'lib/puppet/settings/ini_file.rb', line 139

def infix
  @infix
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



139
140
141
# File 'lib/puppet/settings/ini_file.rb', line 139

def name
  @name
end

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



139
140
141
# File 'lib/puppet/settings/ini_file.rb', line 139

def prefix
  @prefix
end

#suffixObject

Returns the value of attribute suffix

Returns:

  • (Object)

    the current value of suffix



139
140
141
# File 'lib/puppet/settings/ini_file.rb', line 139

def suffix
  @suffix
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



139
140
141
# File 'lib/puppet/settings/ini_file.rb', line 139

def value
  @value
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.



142
143
144
145
146
147
148
# File 'lib/puppet/settings/ini_file.rb', line 142

def write(fh)
  fh.write(prefix)
  fh.write(name)
  fh.write(infix)
  fh.write(value)
  fh.puts(suffix)
end