Class: Puppet::Settings::IniFile::SectionLine 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.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
Attributes included from LineNumber
Instance Method Summary collapse
- #to_s ⇒ Object private
- #write(fh) ⇒ Object private
Methods included from LineNumber
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
202 203 204 |
# File 'lib/puppet/settings/ini_file.rb', line 202 def name @name end |
#prefix ⇒ Object
Returns the value of attribute prefix
202 203 204 |
# File 'lib/puppet/settings/ini_file.rb', line 202 def prefix @prefix end |
#suffix ⇒ Object
Returns the value of attribute suffix
202 203 204 |
# File 'lib/puppet/settings/ini_file.rb', line 202 def suffix @suffix end |
Instance Method Details
#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.
205 206 207 |
# File 'lib/puppet/settings/ini_file.rb', line 205 def to_s "#{prefix}[#{name}]#{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.
209 210 211 |
# File 'lib/puppet/settings/ini_file.rb', line 209 def write(fh) fh.puts(to_s) end |