instance method
method_missing
Ruby on Rails 7.2.3
Since v2.2.3Signature
method_missing(...)
Send the missing method to time instance, and wrap result in a new TimeWithZone with the existing time_zone.
Parameters
-
...req
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 544
def method_missing(...)
wrap_with_time_zone time.__send__(...)
rescue NoMethodError => e
raise e, e.message.sub(time.inspect, inspect).sub("Time", "ActiveSupport::TimeWithZone"), e.backtrace
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 544
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone