instance method <=>

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

<=>(tz)

Compares two Timezones based on their identifier. Returns -1 if tz is less than self, 0 if tz is equal to self and +1 if tz is greater than self.

Parameters

tz req
Source
# File activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb, line 468
    def <=>(tz)
      identifier <=> tz.identifier
    end

Defined in activesupport/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb line 468 · View on GitHub · Improve this page · Find usages on GitHub

Defined in TZInfo::Timezone

Type at least 2 characters to search.

↑↓ navigate · open · esc close