Sha256: 456f850eb568193ba80c9add1a9f813896c051cc69e741035cf987a808125a08

Contents?: true

Size: 735 Bytes

Versions: 30

Compression:

Stored size: 735 Bytes

Contents

class Date
  alias broken_equals ==
  def ==(other)
    return false unless other.is_a?(Date)
    broken_equals(other)
  end
end

class Time
  alias broken_equals ==
  def ==(other)
    return false unless other.is_a?(Time)
    broken_equals(other)
  end
end

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

class Set
  def &(enum)
    n = self.class.new
    enum.each { |o| n.add(o) if include?(o) }
    n
  end
  alias intersection &
end unless Set.method_defined? :intersection

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
hyper-operation-1.0.alpha1.8 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1.7 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1.6 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1.5 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1.4 lib/hyper-operation/opal_patches.rb
hyper-operation-0.99.6 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1.3 lib/hyper-operation/opal_patches.rb
hyper-operation-0.99.5 lib/hyper-operation/opal_patches.rb
hyper-operation-0.99.4 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1.2 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1.1 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.alpha1 lib/hyper-operation/opal_patches.rb
hyper-operation-0.99.3 lib/hyper-operation/opal_patches.rb
hyper-operation-0.99.2 lib/hyper-operation/opal_patches.rb
hyper-operation-0.99.1 lib/hyper-operation/opal_patches.rb
hyper-operation-0.99.0 lib/hyper-operation/opal_patches.rb
hyper-operation-1.0.0.lap28 lib/hyper-operation/opal_patches.rb
hyper-operation-0.5.12 lib/hyper-operation/opal_patches.rb
hyper-operation-0.5.11 lib/hyper-operation/opal_patches.rb
hyper-operation-0.5.10 lib/hyper-operation/opal_patches.rb