Sha256: 0f6d6a2cb8fa3f3c754e29bb3f8c1aa2e455b577efd68a97ed12ec092af9ecf9

Contents?: true

Size: 195 Bytes

Versions: 3

Compression:

Stored size: 195 Bytes

Contents

class Time

  def self.current
    now
  end

  def past?(other=nil)
    self < (other || self.class.current)
  end

  def future?(other=nil)
    self > (other || self.class.current)
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/time/future.rb
facets-3.1.0 lib/core/facets/time/future.rb
facets-3.0.0 lib/core/facets/time/future.rb