Sha256: c3b8e397767ae8558e718aadc2c9a4ce49c3b9d278097327b0db7f00028a879e

Contents?: true

Size: 164 Bytes

Versions: 509

Compression:

Stored size: 164 Bytes

Contents

require 'active_support/core_ext/object/acts_like'

class Time
  # Duck-types as a Time-like class. See Object#acts_like?.
  def acts_like_time?
    true
  end
end

Version data entries

509 entries across 457 versions & 45 rubygems

Version Path
activesupport-4.2.9.rc2 lib/active_support/core_ext/time/acts_like.rb
activesupport-5.0.4 lib/active_support/core_ext/time/acts_like.rb
activesupport-5.0.4.rc1 lib/active_support/core_ext/time/acts_like.rb
activesupport-4.2.9.rc1 lib/active_support/core_ext/time/acts_like.rb
activesupport-5.0.3 lib/active_support/core_ext/time/acts_like.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activesupport-4.2.8/lib/active_support/core_ext/time/acts_like.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.2.1 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.2.0 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.9 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.8 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.7 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.6 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.4 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
tdiary-5.0.4 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/activesupport-3.2.22.5/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.3 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.2 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.1 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb
lazy_record-0.1.0 vendor/bundle/gems/activesupport-5.0.2/lib/active_support/core_ext/time/acts_like.rb