Class: BasicObject

Defined in:
lib/makit/mp/basic_object_mp.rb

Overview

monkey patch String class with a run method

Instance Method Summary collapse

Instance Method Details

#to_json(*_args) ⇒ Object



9
10
11
# File 'lib/makit/mp/basic_object_mp.rb', line 9

def to_json(*_args)
  to_json
end

#to_pretty_jsonObject



13
14
15
16
# File 'lib/makit/mp/basic_object_mp.rb', line 13

def to_pretty_json
  json = to_json
  ::JSON.pretty_generate(::JSON.parse(json))
end