Sha256: bfe097acb9001a64ec3fa5eddc0ad086a3429a788c69ccfb699b70f04652f613

Contents?: true

Size: 359 Bytes

Versions: 67

Compression:

Stored size: 359 Bytes

Contents

module JSON
  class << self
    alias pretty_generate_orig pretty_generate

    def pretty_generate(object, options = nil)
      begin
        pretty_generate_orig(object, options)
      rescue JSON::NestingError => e
        e.message << ': Undefined function may have been referenced [e.g. _user_data()/_join()]'
        raise e
      end
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
kumogata-0.2.9 lib/kumogata/ext/json_ext.rb
kumogata-0.2.8 lib/kumogata/ext/json_ext.rb
kumogata-0.2.7 lib/kumogata/ext/json_ext.rb
kumogata-0.2.6 lib/kumogata/ext/json_ext.rb
kumogata-0.2.5 lib/kumogata/ext/json_ext.rb
kumogata-0.2.4 lib/kumogata/ext/json_ext.rb
kumogata-0.2.3 lib/kumogata/ext/json_ext.rb