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