Flowdock
method

altshow

Importance_0
v1_9_1_378 - Show latest stable - 0 notes - Class: WadlerExample::Tree
altshow(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 594
      def altshow(q)
        q.group {
          q.text @string
          unless @children.empty?
            q.text '['
            q.nest(2) {
              q.breakable
              first = true
              @children.each {|t|
                if first
                  first = false
                else
                  q.text ','
                  q.breakable
                end
                t.altshow(q)
              }
            }
            q.breakable
            q.text ']'
          end
        }
      end
Register or log in to add new notes.