module LunaPark::Extensions::Comparable::InstanceMethods

Public Instance Methods

==(other)
Alias for: eql?
debug()
Alias for: enable_debug
enable_debug() click to toggle source

Enable debug mode (just include debug methods)

# File lib/luna_park/extensions/comparable.rb, line 81
def enable_debug
  self.class.enable_debug
  self
end
Also aliased as: debug
eql?(other) click to toggle source

Compare this object with other using methids, described with `::comparable_attributes` method

# File lib/luna_park/extensions/comparable.rb, line 71
def eql?(other)
  return false unless other.is_a?(self.class)

  self.class.comparable_attributes_list.all? { |attr| send(attr) == other.send(attr) }
end
Also aliased as: ==