instance method
=~
Ruby on Rails 7.1.6
Since v2.2.3Signature
=~(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 344
def =~(re)
re === name || re === MAPPING[name]
end
Defined in activesupport/lib/active_support/values/time_zone.rb line 344
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeZone