Class: Hash

Inherits:
Object show all
Defined in:
lib/json_cat/ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#rainbow_print(level = 0) ⇒ Object



5
6
7
8
# File 'lib/json_cat/ext/hash.rb', line 5

def rainbow_print(level=0)
  return Rainbow('{}').color(JsonCat::COLORS[level]) if length == 0
  rainbow_print_build(level)
end