instance method
match?
Ruby on Rails 6.1.7.10
Since v6.1.7.10Signature
match?(re)
Compare #name and TZInfo identifier to a supplied regexp, returning true if a match is found.
Parameters
-
rereq
Source
# File activesupport/lib/active_support/values/time_zone.rb, line 335
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 335
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone