class ReVIEW::TOCParser::Section

Attributes

label[R]
level[R]

Public Class Methods

new(level, label, path = nil) click to toggle source
Calls superclass method ReVIEW::TOCParser::Node.new
# File ../../../../../lib/review/tocparser.rb, line 175
def initialize(level, label, path = nil)
  super()
  @level = level
  @label = label
  @filename = (path ? real_filename(path) : nil)
end

Public Instance Methods

estimated_lines() click to toggle source
# File ../../../../../lib/review/tocparser.rb, line 194
def estimated_lines
  @children.inject(0) {|sum, n| sum + n.estimated_lines }
end
inspect() click to toggle source
# File ../../../../../lib/review/tocparser.rb, line 202
def inspect
  "\#<#{self.class} level=#{@level} #{@label}>"
end
yield_section() { |self| ... } click to toggle source
# File ../../../../../lib/review/tocparser.rb, line 198
def yield_section
  yield self
end