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


184
185
186
# File 'lib/puppet/settings/ini_file.rb', line 184

def infix
  @infix
end

#nameObject

Returns the value of attribute name


184
185
186
# File 'lib/puppet/settings/ini_file.rb', line 184

def name
  @name
end

#prefixObject

Returns the value of attribute prefix


184
185
186
# File 'lib/puppet/settings/ini_file.rb', line 184

def prefix
  @prefix
end

#suffixObject

Returns the value of attribute suffix


184
185
186
# File 'lib/puppet/settings/ini_file.rb', line 184

def suffix
  @suffix
end

#valueObject

Returns the value of attribute value


184
185
186
# File 'lib/puppet/settings/ini_file.rb', line 184

def value
  @value
end

Instance Method Details

#==(other) ⇒ 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.


195
196
197
# File 'lib/puppet/settings/ini_file.rb', line 195

def ==(other)
  super(other) && self.line_number == other.line_number
end

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


187
188
189
# File 'lib/puppet/settings/ini_file.rb', line 187

def to_s
  "#{prefix}#{name}#{infix}#{value}#{suffix}"
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.


191
192
193
# File 'lib/puppet/settings/ini_file.rb', line 191

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