Sha256: 1cfc12b54238b711fd894cf8b179a540333cb54fd08421c4efa30ce79c4b66df

Contents?: true

Size: 149 Bytes

Versions: 6

Compression:

Stored size: 149 Bytes

Contents

require '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

6 entries across 6 versions & 1 rubygems

Version Path
core_ext-0.0.6 lib/core_ext/time/acts_like.rb
core_ext-0.0.5 lib/core_ext/time/acts_like.rb
core_ext-0.0.4 lib/core_ext/time/acts_like.rb
core_ext-0.0.3 lib/core_ext/time/acts_like.rb
core_ext-0.0.2 lib/core_ext/time/acts_like.rb
core_ext-0.0.1 lib/core_ext/time/acts_like.rb