class ReVIEW::Section

Attributes

label[R]
level[R]

Public Class Methods

new(level, label, path = nil) click to toggle source
Calls superclass method ReVIEW::Node.new
# File ../../../../../lib/review/tocparser.rb, line 162
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 181
def estimated_lines
  @children.inject(0) { |sum, n| sum + n.estimated_lines }
end
inspect() click to toggle source
# File ../../../../../lib/review/tocparser.rb, line 189
def inspect
  "#<#{self.class} level=#{@level} #{@label}>"
end
yield_section() { |self| ... } click to toggle source
# File ../../../../../lib/review/tocparser.rb, line 185
def yield_section
  yield self
end