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.
270
271
272
|
# File 'lib/review/tocparser.rb', line 270
def initialize
@lines = 0
end
|
Instance Method Details
#add(line) ⇒ Object
278
279
280
|
# File 'lib/review/tocparser.rb', line 278
def add(line)
@lines += 1
end
|
#estimated_lines ⇒ Object
282
283
284
|
# File 'lib/review/tocparser.rb', line 282
def estimated_lines
@lines + 2
end
|
274
275
276
|
# File 'lib/review/tocparser.rb', line 274
def inspect
"\#<#{self.class}>"
end
|
#yield_section ⇒ Object
286
287
|
# File 'lib/review/tocparser.rb', line 286
def yield_section
end
|