Module: Puppet::Settings::IniFile::LineNumber Private
- Included in:
- Line, SectionLine, SettingLine
- Defined in:
- lib/puppet/settings/ini_file.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #previous ⇒ Object private
Instance Method Summary collapse
- #line_number ⇒ Object private
Instance Attribute Details
#previous ⇒ 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.
118 119 120 |
# File 'lib/puppet/settings/ini_file.rb', line 118 def previous @previous end |
Instance Method Details
#line_number ⇒ 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.
120 121 122 123 124 125 126 127 128 |
# File 'lib/puppet/settings/ini_file.rb', line 120 def line_number line = 0 previous_line = previous while previous_line line += 1 previous_line = previous_line.previous end line end |