Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#pretty_print(q) ⇒ Object



348
349
350
# File 'lib/project/pp.rb', line 348

def pretty_print(q)
  q.pp_hash self
end

#pretty_print_cycle(q) ⇒ Object



352
353
354
# File 'lib/project/pp.rb', line 352

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