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