Class: Repeatable::Expression::Date
- Defined in:
- lib/repeatable/expression/date.rb
Direct Known Subclasses
Biweekly, DayInMonth, ExactDate, RangeInYear, Weekday, WeekdayInMonth
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
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 |
#hash ⇒ Object
15 16 17 |
# File 'lib/repeatable/expression/date.rb', line 15 def hash [attributes.values, self.class.name].hash end |