Sha256: 675d0f0c8a0ed0dd74d4221b1985b4f6161bb16c204b4b3ff91ffd76ad505dba
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
module Draper module Decoratable module Equality # Compares self with a possibly-decorated object. # # @return [Boolean] def ==(other) super || other.respond_to?(:decorated?) && other.decorated? && other.respond_to?(:source) && self == other.source end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-1.1.0 | lib/draper/decoratable/equality.rb |