Class: Repeatable::Expression::Date
- Inherits:
-
Base
- Object
- Base
- Repeatable::Expression::Date
show all
- Defined in:
- lib/repeatable/expression/date.rb
Instance Method Summary
collapse
Methods inherited from Base
===, #difference, #include?, #intersection, #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
|
#to_h ⇒ Object
5
6
7
|
# File 'lib/repeatable/expression/date.rb', line 5
def to_h
Hash[hash_key, attributes]
end
|