Sha256: 2e4b2bac3b37ffc4ebda0815ef1a7e1fec8db6ba5b564e76f832e8ad6056e82c

Contents?: true

Size: 193 Bytes

Versions: 1

Compression:

Stored size: 193 Bytes

Contents

class Time
  def eql? o
    return true if equal?(o)
    self.class == o and self == o
  end
  
  def == o    
    return true if equal?(o)
    o.respond_to?(:to_i) and to_i == o.to_i
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_ext-0.5.4 lib/ruby_ext/core/time.rb