Module: PDK::Config::IniFile::IniFileImpl::LineNumber
- Included in:
- Line, SectionLine, SettingLine
- Defined in:
- lib/pdk/config/ini_file.rb
Instance Attribute Summary collapse
-
#previous ⇒ Object
Returns the value of attribute previous.
Instance Method Summary collapse
Instance Attribute Details
#previous ⇒ Object
Returns the value of attribute previous.
129 130 131 |
# File 'lib/pdk/config/ini_file.rb', line 129 def previous @previous end |
Instance Method Details
#line_number ⇒ Object
131 132 133 134 135 136 137 138 139 |
# File 'lib/pdk/config/ini_file.rb', line 131 def line_number line = 0 previous_line = previous while previous_line line += 1 previous_line = previous_line.previous end line end |