Class: Feriados::Rules::RuleBase
- Inherits:
-
Object
- Object
- Feriados::Rules::RuleBase
show all
- Defined in:
- lib/feriados/rules/rule_base.rb
Instance Method Summary
collapse
Instance Method Details
#==(other) ⇒ Object
12
13
14
|
# File 'lib/feriados/rules/rule_base.rb', line 12
def ==(other)
eql?(other)
end
|
#eql?(other) ⇒ Boolean
8
9
10
|
# File 'lib/feriados/rules/rule_base.rb', line 8
def eql?(other)
hash == other.hash
end
|
#hash ⇒ Object
4
5
6
|
# File 'lib/feriados/rules/rule_base.rb', line 4
def hash
state.hash
end
|