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.
248
249
250
|
# File 'lib/review/tocparser.rb', line 248
def initialize
@lines = 0
end
|
Instance Method Details
#add(_line) ⇒ Object
256
257
258
|
# File 'lib/review/tocparser.rb', line 256
def add(_line)
@lines += 1
end
|
#estimated_lines ⇒ Object
260
261
262
|
# File 'lib/review/tocparser.rb', line 260
def estimated_lines
@lines + 2
end
|
252
253
254
|
# File 'lib/review/tocparser.rb', line 252
def inspect
"#<#{self.class}>"
end
|
#yield_section ⇒ Object
264
265
|
# File 'lib/review/tocparser.rb', line 264
def yield_section
end
|