Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#pretty_print(q) ⇒ Object



2
3
4
# File 'lib/pp-colour/hash.rb', line 2

def pretty_print(q)
  q.pp_hash self
end

#pretty_print_cycle(q) ⇒ Object



6
7
8
# File 'lib/pp-colour/hash.rb', line 6

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