Sha256: ad736630a7163b690befa915232f95da4f94d97be479203964483dd207998f63

Contents?: true

Size: 416 Bytes

Versions: 20

Compression:

Stored size: 416 Bytes

Contents

class Symbol
  include Comparable
  
  def <=>(other)
    return unless other.kind_of? Symbol
    to_s <=> other.to_s
  end
end unless Symbol.is_a?(Comparable)

class Module
  if RUBY_VERSION < '1.9'
    alias const? const_defined?
  else
    def const?(name)
      const_defined?(name, false)
    end
  end
end

class Struct
  alias_method :__class__, :class
end unless Struct.instance_methods.include?(:__class__)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
csl-1.0.0.pre21 lib/csl/compatibility.rb
csl-1.0.0.pre20 lib/csl/compatibility.rb
csl-1.0.0.pre19 lib/csl/compatibility.rb
csl-1.0.0.pre18 lib/csl/compatibility.rb
csl-1.0.0.pre17 lib/csl/compatibility.rb
csl-1.0.0.pre16 lib/csl/compatibility.rb
csl-1.0.0.pre15 lib/csl/compatibility.rb
csl-1.0.0.pre14 lib/csl/compatibility.rb
csl-1.0.0.pre13 lib/csl/compatibility.rb
csl-1.0.0.pre12 lib/csl/compatibility.rb
csl-1.0.0.pre11 lib/csl/compatibility.rb
csl-1.0.0.pre10 lib/csl/compatibility.rb
csl-1.0.0.pre9 lib/csl/compatibility.rb
csl-1.0.0.pre8 lib/csl/compatibility.rb
csl-1.0.0.pre7 lib/csl/compatibility.rb
csl-1.0.0.pre6 lib/csl/compatibility.rb
csl-1.0.0.pre5 lib/csl/compatibility.rb
csl-1.0.0.pre4 lib/csl/compatibility.rb
csl-1.0.0.pre3 lib/csl/compatibility.rb
csl-1.0.0.pre2 lib/csl/compatibility.rb