A simple time range class for Ruby.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README
Rakefile
ranges.gemspec

README

Just a simple class I wrote for time ranges. Allows asking questions like:

range_1.overlaps_with?(range_2)
range_1.disjoint_to?(range_2)
range_1.wraps?(range_2)
range_1.within?(range_2)

check out the tests for more information.