module Bumbleworks::Support::WrapperComparison

Public Instance Methods

==(other) click to toggle source
# File lib/bumbleworks/support/wrapper_comparison.rb, line 12
def ==(other)
  other.is_a?(self.class) &&
    identifier_for_comparison &&
    identifier_for_comparison == other.identifier_for_comparison
end
eql?(other) click to toggle source
# File lib/bumbleworks/support/wrapper_comparison.rb, line 18
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/bumbleworks/support/wrapper_comparison.rb, line 8
def hash
  identifier_for_comparison.hash
end
identifier_for_comparison() click to toggle source
# File lib/bumbleworks/support/wrapper_comparison.rb, line 4
def identifier_for_comparison
  id
end