Method: ActiveSupport::TimeWithZone#method_missing

Defined in:
lib/active_support/time_with_zone.rb

#method_missingObject

Send the missing method to time instance, and wrap result in a new TimeWithZone with the existing time_zone.



550
551
552
553
554
# File 'lib/active_support/time_with_zone.rb', line 550

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