Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • pp.rb

Parent

Methods

MatchData

Public Instance Methods

pretty_print(q) click to toggle source
 
               # File pp.rb, line 443
def pretty_print(q)
  q.object_group(self) {
    q.breakable
    q.seplist(1..self.size, lambda { q.breakable }) {|i|
      q.pp self[i-1]
    }
  }
end