Class: Hash

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#pretty_print(q) ⇒ Object

:nodoc:



370
371
372
# File 'lib/pp.rb', line 370

def pretty_print(q) # :nodoc:
  q.pp_hash self
end

#pretty_print_cycle(q) ⇒ Object

:nodoc:



374
375
376
# File 'lib/pp.rb', line 374

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