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

In Files

  • pp.rb

Hash

Public Instance Methods

pretty_print(q) click to toggle source
 
               # File pp.rb, line 315
def pretty_print(q)
  q.pp_hash self
end
            
pretty_print_cycle(q) click to toggle source
 
               # File pp.rb, line 319
def pretty_print_cycle(q)
  q.text(empty? ? '{}' : '{...}')
end