Module: ActiveSupport::CoreExtensions::Date::Behavior

Included in:
Date
Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/behavior.rb

Instance Method Summary collapse

Instance Method Details

#acts_like_date?Boolean

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/gems/activesupport-2.2.2/lib/active_support/core_ext/date/behavior.rb', line 9

def acts_like_date?
  true
end