class Juli::Visitor::LineTree
Public Class Methods
new(depth)
click to toggle source
# File lib/juli/visitor/tree.rb, line 9 def initialize(depth) @depth = depth end
Public Instance Methods
print_depth()
click to toggle source
# File lib/juli/visitor/tree.rb, line 13 def print_depth print '| ' * @depth end
visit_string(n)
click to toggle source
# File lib/juli/visitor/tree.rb, line 17 def visit_string(n) print_depth printf "str: %s\n", str_trim(n.str) end
visit_url(n)
click to toggle source
# File lib/juli/visitor/tree.rb, line 27 def visit_url(n) print_depth printf "url: %s\n", str_trim(n.str) end
visit_wikiname(n)
click to toggle source
# File lib/juli/visitor/tree.rb, line 22 def visit_wikiname(n) print_depth printf "wiki: %s\n", str_trim(n.str) end