Class: IniParse::Lines::Blank
- Inherits:
-
Object
- Object
- IniParse::Lines::Blank
- Includes:
- Line
- Defined in:
- lib/iniparse/lines.rb
Overview
Represents a blank line. Used so that we can preserve blank lines when writing back to the file.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Line
#comment, #has_comment?, #initialize, #line_contents, #to_ini
Class Method Details
.parse(line, opts) ⇒ Object
288 289 290 291 292 293 294 295 296 |
# File 'lib/iniparse/lines.rb', line 288 def self.parse(line, opts) if line !~ /\S/ # blank if opts[:comment].nil? [:blank] else [:comment, opts[:comment], opts] end end end |
Instance Method Details
#blank? ⇒ Boolean
284 285 286 |
# File 'lib/iniparse/lines.rb', line 284 def blank? true end |