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