Sha256: 9095d19787dea98869903131a644b7de9ddc703bd8e4de0f05df053675fd2acb
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 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 def self.test(first, other) first == other end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jamesgolick-draper-1.1.1a | lib/draper/decoratable/equality.rb |