Sha256: ed633bde5e73a5d8fec5bf11242c6a9dabf63ee7e12d645bf5722155c6ee7b7c

Contents?: true

Size: 302 Bytes

Versions: 23

Compression:

Stored size: 302 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

23 entries across 23 versions & 2 rubygems

Version Path
hyper-model-1.0.alpha1.8 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1.7 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1.6 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1.5 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1.4 lib/opal/parse_patch.rb
hyper-model-0.99.6 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1.3 lib/opal/parse_patch.rb
hyper-model-0.99.5 lib/opal/parse_patch.rb
hyper-model-0.99.4 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1.2 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1.1 lib/opal/parse_patch.rb
hyper-model-1.0.alpha1 lib/opal/parse_patch.rb
hyper-model-0.99.3 lib/opal/parse_patch.rb
hyper-model-0.99.2 lib/opal/parse_patch.rb
hyper-model-0.99.1 lib/opal/parse_patch.rb
hyper-model-0.99.0 lib/opal/parse_patch.rb
hyper-mesh-1.0.0.lap28 lib/opal/parse_patch.rb
hyper-mesh-1.0.0.lap27 lib/opal/parse_patch.rb
hyper-mesh-1.0.0.lap26 lib/opal/parse_patch.rb
hyper-mesh-1.0.0.lap25 lib/opal/parse_patch.rb