class Rushour::Interval

Public Class Methods

new(start, finish) click to toggle source
# File lib/rushour/interval.rb, line 3
def initialize(start, finish)
  @start = start
  @finish = finish
end

Public Instance Methods

in?(time) click to toggle source
# File lib/rushour/interval.rb, line 8
def in?(time)
  @start < time && time < @finish # TODO: Bug here if leap day
end