instance method
eql?
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
eql?(p)
Returns true if this TimezonePeriods is equal to p. This compares the start_transition, end_transition and offset using eql?
Parameters
-
preq
Source
# File activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb, line 178
def eql?(p)
p.respond_to?(:start_transition) && p.respond_to?(:end_transition) &&
p.respond_to?(:offset) && start_transition.eql?(p.start_transition) &&
end_transition.eql?(p.end_transition) && offset.eql?(p.offset)
end
Defined in activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb line 178
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TZInfo::TimezonePeriod