Class: Puppet::Settings::IniFile::SettingLine Private
- 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
-
#infix ⇒ Object
Returns the value of attribute infix.
-
#name ⇒ Object
Returns the value of attribute name.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes included from LineNumber
Instance Method Summary collapse
- #==(other) ⇒ Object private
- #to_s ⇒ Object private
- #write(fh) ⇒ Object private
Methods included from LineNumber
Instance Attribute Details
#infix ⇒ Object
Returns the value of attribute infix
183 184 185 |
# File 'lib/puppet/settings/ini_file.rb', line 183 def infix @infix end |
#name ⇒ Object
Returns the value of attribute name
183 184 185 |
# File 'lib/puppet/settings/ini_file.rb', line 183 def name @name end |
#prefix ⇒ Object
Returns the value of attribute prefix
183 184 185 |
# File 'lib/puppet/settings/ini_file.rb', line 183 def prefix @prefix end |
#suffix ⇒ Object
Returns the value of attribute suffix
183 184 185 |
# File 'lib/puppet/settings/ini_file.rb', line 183 def suffix @suffix end |
#value ⇒ Object
Returns the value of attribute value
183 184 185 |
# File 'lib/puppet/settings/ini_file.rb', line 183 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.
194 195 196 |
# File 'lib/puppet/settings/ini_file.rb', line 194 def ==(other) super(other) && self.line_number == other.line_number end |
#to_s ⇒ 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.
186 187 188 |
# File 'lib/puppet/settings/ini_file.rb', line 186 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.
190 191 192 |
# File 'lib/puppet/settings/ini_file.rb', line 190 def write(fh) fh.puts(to_s) end |