method
show
v1_8_6_287 -
Show latest stable
- Class:
WadlerExample::Tree
show(q)public
No documentation available.
# File lib/prettyprint.rb, line 583
def show(q)
q.group {
q.text @string
q.nest(@string.length) {
unless @children.empty?
q.text '['
q.nest(1) {
first = true
@children.each {|t|
if first
first = false
else
q.text ','
q.breakable
end
t.show(q)
}
}
q.text ']'
end
}
}
end