Sha256: 12f9197d76140c7f1baeae10f5d5dd0923d18fd8f2ee210878a3295dfdbee282

Contents?: true

Size: 286 Bytes

Versions: 25

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true
require "json"
require "yaml"

# monkey patch String class with a run method

class BasicObject
  def to_json
    self.to_json
  end

  def to_pretty_json
    json = self.to_json
    ::JSON.pretty_generate(::JSON.parse(json))
  end
end # class BasicObject

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
makit-0.0.57 lib/makit/mp/basic_object_mp.rb
makit-0.0.53 lib/makit/mp/basic_object_mp.rb
makit-0.0.52 lib/makit/mp/basic_object_mp.rb
makit-0.0.51 lib/makit/mp/basic_object_mp.rb
makit-0.0.50 lib/makit/mp/basic_object_mp.rb
makit-0.0.49 lib/makit/mp/basic_object_mp.rb
makit-0.0.47 lib/makit/mp/basic_object_mp.rb
makit-0.0.46 lib/makit/mp/basic_object_mp.rb
makit-0.0.45 lib/makit/mp/basic_object_mp.rb
makit-0.0.44 lib/makit/mp/basic_object_mp.rb
makit-0.0.42 lib/makit/mp/basic_object_mp.rb
makit-0.0.41 lib/makit/mp/basic_object_mp.rb
makit-0.0.35 lib/makit/mp/basic_object_mp.rb
makit-0.0.34 lib/makit/mp/basic_object_mp.rb
makit-0.0.33 lib/makit/mp/basic_object_mp.rb
makit-0.0.32 lib/makit/mp/basic_object_mp.rb
makit-0.0.31 lib/makit/mp/basic_object_mp.rb
makit-0.0.30 lib/makit/mp/basic_object_mp.rb
makit-0.0.29 lib/makit/mp/basic_object_mp.rb
makit-0.0.28 lib/makit/mp/basic_object_mp.rb