Module: BeforeAndAfter

Included in:
Date, DateTime, Time
Defined in:
lib/antikythera.rb

Instance Method Summary collapse

Instance Method Details

#after?(time) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/antikythera.rb', line 6

def after?(time)
  self > time
end

#before?(time) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/antikythera.rb', line 2

def before?(time)
  self < time
end