class Juli::Visitor::Html::Helper::Contents::ChapterChecker

Check if chapter exists or not

Attributes

chapter_exists[RW]

Public Class Methods

new(opts = {}) click to toggle source
Calls superclass method Juli::Absyn::Visitor::new
# File lib/juli/visitor/html/helper/contents.rb, line 8
def initialize(opts = {})
  @chapter_exists = false
  super
end

Public Instance Methods

visit_chapter(n) click to toggle source
# File lib/juli/visitor/html/helper/contents.rb, line 13
def visit_chapter(n)
  @chapter_exists = true
end