Class: Repeatable::Expression::Date

Inherits:
Base
  • Object
show all
Defined in:
lib/repeatable/expression/date.rb

Instance Method Summary collapse

Methods inherited from Base

===, #deconstruct_keys, #difference, #include?, #intersection, #to_h, #union

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



9
10
11
# File 'lib/repeatable/expression/date.rb', line 9

def ==(other)
  other.is_a?(self.class) && attributes == other.attributes
end

#hashObject



15
16
17
# File 'lib/repeatable/expression/date.rb', line 15

def hash
  [attributes.values, self.class.name].hash
end