Sha256: b45601ad3efabbe54f8ef6a708fa0c30c896a7c21a73e8885d49582b007ffe80

Contents?: true

Size: 104 Bytes

Versions: 4

Compression:

Stored size: 104 Bytes

Contents

def same_time_as(time)
  lambda { |obj| time.is_a?(Time) && obj.is_a?(Time) && (time - obj) < 1.0 }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motion-yapper-0.1.0 spec/helpers/time_helper.rb
motion-yapper-0.0.3 spec/helpers/time_helper.rb
motion-yapper-0.0.2 spec/helpers/time_helper.rb
motion-yapper-0.0.1 spec/helpers/time_helper.rb