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

Included in:
DateTime, Time
Defined in:
lib/gems/activesupport-2.2.2/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/gems/activesupport-2.2.2/lib/active_support/core_ext/time/behavior.rb', line 7

def acts_like_time?
  true
end