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