instance method match?

Ruby on Rails 7.2.3

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

match?(re)

Compare #name and TZInfo identifier to a supplied regexp, returning true if a match is found.

Parameters

re req
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 350
    def match?(re)
      (re == name) || (re == MAPPING[name]) ||
        ((Regexp === re) && (re.match?(name) || re.match?(MAPPING[name])))
    end

Defined in activesupport/lib/active_support/values/time_zone.rb line 350 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::TimeZone

Type at least 2 characters to search.

↑↓ navigate · open · esc close