class Juli::Visitor::TakahashiMethod
This visits Absyn
tree and generates HTML for 'Takahashi method' slideshow.
Text files under juli-repository must have '.txt' extention.
Almost all are the same as Html
VISITOR.
OPTIONS¶ ↑
- -t template
-
specify template
Public Instance Methods
run_bulk()
click to toggle source
bulk-mode in TakahashiMethod
doesn't make sense so that it just warns and return quickly.
# File lib/juli/visitor/takahashi_method.rb, line 14 def run_bulk STDERR.printf("bulk-mode in TakahashiMethod is not supported.\n") end
Private Instance Methods
blockquote_css()
click to toggle source
specify blockquote css
# File lib/juli/visitor/takahashi_method.rb, line 32 def blockquote_css {:class=>'slide'} end
header_link(n)
click to toggle source
overwrite to generate simple <h# class=slide>…</h#>
# File lib/juli/visitor/takahashi_method.rb, line 20 def header_link(n) content_tag("h#{n.level + 1}", :class=>'slide') do @header_sequence.gen(n.level) + '. ' + n.str end + "\n" end
list_item_css()
click to toggle source
specify list item css
# File lib/juli/visitor/takahashi_method.rb, line 37 def list_item_css {:class=>'slide'} end
paragraph_css()
click to toggle source
specify paragraph css
# File lib/juli/visitor/takahashi_method.rb, line 27 def paragraph_css {:class=>'default slide'} end