Class: Hash

Inherits:
Object show all
Defined in:
lib/pp.rb

Instance Method Summary collapse

Instance Method Details

#pretty_print(q) ⇒ Object



342
343
344
# File 'lib/pp.rb', line 342

def pretty_print(q)
  q.pp_hash self
end

#pretty_print_cycle(q) ⇒ Object



346
347
348
# File 'lib/pp.rb', line 346

def pretty_print_cycle(q)
  q.text(empty? ? '{}' : '{...}')
end