Flowdock
method

show

Importance_0
v1_9_1_378 - Show latest stable - 0 notes - Class: WadlerExample::Tree
show(q) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/prettyprint.rb, line 570
      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
Register or log in to add new notes.