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