Module: ActiveSupport::CoreExtensions::Time::Behavior

Included in:
DateTime, Time
Defined in:
lib/active_support/core_ext/time/behavior.rb

Instance Method Summary collapse

Instance Method Details

#acts_like_time?Boolean

Enable more predictable duck-typing on Time-like classes. See Object#acts_like?.

Returns:

  • (Boolean)


7
8
9
# File 'lib/active_support/core_ext/time/behavior.rb', line 7

def acts_like_time?
  true
end