Support for open ended ranges in Ruby.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
README
init.rb

README

Super Range
===========

Allows for open ended ranges.

Examples
========

# single open ended range
sr = SuperRange.new(1, nil)   # => 1...
sr.include?(10)               # => true
sr.include?(0)                # => false

# double open ended range
sr = SuperRange.new
sr.include?(123)              # => true

Homepage: http://github.com/jqr/super_range/tree/master  
Copyright (c) 2008 Elijah Miller <elijah.miller@gmail.com>, released under the MIT license.