Sha256: 9cb668b150cc58ec6e971c6f19cfcb3e18132ce09c5b90f9d93e7bff4409b1cb
Contents?: true
Size: 513 Bytes
Versions: 4
Compression:
Stored size: 513 Bytes
Contents
module Liner module Equalizable # Test equality between a liner class instance and another object # @param other [Object] # @return [true, false] def ==(other) return false unless other.class == self.class liner == other.liner end # Test equality between a liner class instance and another object # @param other [Object] # @return [true, false] def eql?(other) return false unless other.class == self.class liner.eql?(other.liner) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
liner-0.2.4 | lib/liner/equalizable.rb |
liner-0.2.3 | lib/liner/equalizable.rb |
liner-0.2.2 | lib/liner/equalizable.rb |
liner-0.2.1 | lib/liner/equalizable.rb |