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.5.12 lib/kumogata/ext/json_ext.rb
kumogata-0.5.11 lib/kumogata/ext/json_ext.rb
kumogata-0.5.10 lib/kumogata/ext/json_ext.rb
kumogata-0.5.9 lib/kumogata/ext/json_ext.rb
kumogata-0.5.8 lib/kumogata/ext/json_ext.rb
kumogata-0.5.7 lib/kumogata/ext/json_ext.rb
kumogata-0.5.6 lib/kumogata/ext/json_ext.rb
kumogata-0.5.5 lib/kumogata/ext/json_ext.rb
kumogata-0.5.4 lib/kumogata/ext/json_ext.rb
kumogata-0.5.3 lib/kumogata/ext/json_ext.rb
kumogata-0.5.2 lib/kumogata/ext/json_ext.rb
kumogata-0.5.2.beta2 lib/kumogata/ext/json_ext.rb
kumogata-0.5.2.beta lib/kumogata/ext/json_ext.rb
kumogata-0.5.1 lib/kumogata/ext/json_ext.rb
kumogata-0.5.0 lib/kumogata/ext/json_ext.rb
kumogata-0.4.19 lib/kumogata/ext/json_ext.rb
kumogata-0.4.18 lib/kumogata/ext/json_ext.rb
kumogata-0.4.17 lib/kumogata/ext/json_ext.rb
kumogata-0.4.16 lib/kumogata/ext/json_ext.rb
kumogata-0.4.15 lib/kumogata/ext/json_ext.rb