Class: ReVIEW::TOCParser::List
Instance Attribute Summary
Attributes inherited from Node
#children
Instance Method Summary
collapse
Methods inherited from Node
#add_child, #chapter?, #each_child, #each_node, #each_section, #each_section_with_index, #section_size
Constructor Details
#initialize ⇒ List
Returns a new instance of List.
255
256
257
|
# File 'lib/review/tocparser.rb', line 255
def initialize
@lines = 0
end
|
Instance Method Details
#add(_line) ⇒ Object
263
264
265
|
# File 'lib/review/tocparser.rb', line 263
def add(_line)
@lines += 1
end
|
#estimated_lines ⇒ Object
267
268
269
|
# File 'lib/review/tocparser.rb', line 267
def estimated_lines
@lines + 2
end
|
259
260
261
|
# File 'lib/review/tocparser.rb', line 259
def inspect
"#<#{self.class}>"
end
|
#yield_section ⇒ Object
271
272
|
# File 'lib/review/tocparser.rb', line 271
def yield_section
end
|