Sha256: be6023d2e8dc50875a9c79c7090ce44c7daa49613488da23b20a11c3bb7f6aaf

Contents?: true

Size: 301 Bytes

Versions: 8

Compression:

Stored size: 301 Bytes

Contents

begin
  JSON.parse("test")
rescue Exception => e
  JSON.class_eval do
    class << self
      alias old_parse parse
    end
    def self.parse(*args, &block)
      old_parse *args, &block
    rescue Exception => e
      raise StandardError.new e.message
    end
  end unless e.is_a? StandardError
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
hyper-mesh-0.6.0 lib/opal/parse_patch.rb
hyper-mesh-0.5.4 lib/opal/parse_patch.rb
hyper-mesh-0.5.3 lib/opal/parse_patch.rb
hyper-mesh-0.5.2 lib/opal/parse_patch.rb
hyper-mesh-0.5.1 lib/opal/parse_patch.rb
hyper-mesh-0.5.0 lib/opal/parse_patch.rb
hyper-mesh-0.4.0 lib/opal/parse_patch.rb
reactive-record-0.8.3 lib/json_parse_patch.rb