Class: Juli::Visitor::Html::Helper::Contents::ContentsDrawer

Inherits:
Absyn::Visitor
  • Object
show all
Includes:
Juli::Visitor::Html::Helper, TagHelper
Defined in:
lib/juli/visitor/html/helper/contents.rb

Instance Method Summary collapse

Methods included from Juli::Visitor::Html::Helper

#header_id, #relative_from

Methods included from TagHelper

#content_tag, #tag

Methods inherited from Absyn::Visitor

#initialize, #run_bulk, #run_file

Constructor Details

This class inherits a constructor from Juli::Absyn::Visitor

Instance Method Details

#visit_array(n) ⇒ Object



32
33
34
35
36
# File 'lib/juli/visitor/html/helper/contents.rb', line 32

def visit_array(n)
  n.array.inject(''){|result, child|
    result += child.accept(self)
  }
end

#visit_chapter(n) ⇒ Object



38
39
40
41
42
43
44
45
46
47
# File 'lib/juli/visitor/html/helper/contents.rb', line 38

def visit_chapter(n)
  (:li) do
    (:a, :href=>'#' + header_id(n)) do
      n.str
    end +
    (:ol) do
      n.blocks.accept(self)
    end
  end
end

#visit_compact_dictionary_list(n) ⇒ Object



27
# File 'lib/juli/visitor/html/helper/contents.rb', line 27

def visit_compact_dictionary_list(n); ''; end

#visit_compact_dictionary_list_item(n) ⇒ Object



28
# File 'lib/juli/visitor/html/helper/contents.rb', line 28

def visit_compact_dictionary_list_item(n); ''; end

#visit_dictionary_list(n) ⇒ Object



29
# File 'lib/juli/visitor/html/helper/contents.rb', line 29

def visit_dictionary_list(n); ''; end

#visit_dictionary_list_item(n) ⇒ Object



30
# File 'lib/juli/visitor/html/helper/contents.rb', line 30

def visit_dictionary_list_item(n); ''; end

#visit_node(n) ⇒ Object



22
# File 'lib/juli/visitor/html/helper/contents.rb', line 22

def visit_node(n); ''; end

#visit_ordered_list(n) ⇒ Object



25
# File 'lib/juli/visitor/html/helper/contents.rb', line 25

def visit_ordered_list(n); ''; end

#visit_str(n) ⇒ Object



23
# File 'lib/juli/visitor/html/helper/contents.rb', line 23

def visit_str(n); ''; end

#visit_unordered_list(n) ⇒ Object



26
# File 'lib/juli/visitor/html/helper/contents.rb', line 26

def visit_unordered_list(n); ''; end

#visit_verbatim(n) ⇒ Object



24
# File 'lib/juli/visitor/html/helper/contents.rb', line 24

def visit_verbatim(n); ''; end