Class: Juli::Visitor::Html::Helper::Contents::ContentsDrawer
Instance Method Summary
collapse
#header_id, #relative_from
Methods included from TagHelper
#content_tag, #tag
#initialize, #run_bulk, #run_file
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)
content_tag(:li) do
content_tag(:a, :href=>'#' + (n)) do
n.str
end +
content_tag(: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
|