Method: ActiveSupport::TimeWithZone#is_a?

Defined in:
lib/active_support/time_with_zone.rb

#is_a?(klass) ⇒ Boolean Also known as: kind_of?

Say we’re a Time to thwart type checking.

Returns:

  • (Boolean)


509
510
511
# File 'lib/active_support/time_with_zone.rb', line 509

def is_a?(klass)
  klass == ::Time || super
end