Module | Gibbler::Range |
In: |
lib/gibbler.rb
|
Creates a digest based on: CLASS:EXCLUDE?:FIRST:LAST where EXCLUDE? is a boolean value whether the Range excludes the last value (i.e. 1...100) and FIRST and LAST are the values returned by Range#first and Range#last. e.g.
(1..100) => Range:false:1:100 => 54506352 (1...100) => Range:true:1:100 => f0cad8cc
To use use method in other classes simply:
class ClassLikeRange include Gibbler::Range end