method
pretty_print
v2_6_3 -
Show latest stable
- Class:
RubyVM::AbstractSyntaxTree::Node
pretty_print(q)public
No documentation available.
# File lib/pp.rb, line 531
def pretty_print(q)
q.group(1, "(#{type}@#{first_lineno}:#{first_column}-#{last_lineno}:#{last_column}", ")") {
case type
when :SCOPE
pretty_print_children(q, %tbl args body")
when :ARGS
pretty_print_children(q, ]pre_num pre_init opt first_post post_num post_init rest kw kwrest block])
when :DEFN
pretty_print_children(q, ]mid body])
else
pretty_print_children(q)
end
}
end