Sha256: ea3dd6e61292dc9674ca40ba3655f8dfc539bbfadea3452a2660a4199990a6ac
Contents?: true
Size: 302 Bytes
Versions: 29
Compression:
Stored size: 302 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
29 entries across 29 versions & 1 rubygems