Module: PassiveSupport::CoreExtensions::Date::Behavior

Included in:
Date
Defined in:
lib/passive_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/passive_support/core_ext/date/behavior.rb', line 9

def acts_like_date?
  true
end