Method: Kernel#jj

Defined in:
lib/extensions/kernel.rb

#jj(*objs) ⇒ Object

Ouputs objs to STDOUT as JSON strings in a pretty format, with indentation and over many lines.



13
14
15
16
17
18
# File 'lib/extensions/kernel.rb', line 13

def jj(*objs)
  objs.each do |obj|
    puts JSON::pretty_unparse(obj)
  end
  nil
end