Sha256: c7774c5614e8715e16ec016578937c4d9c6e1cc289966fc4d3c818bc65487a10
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
class Range { """ Class of Range values. Are created by using Range literal syntax in Fancy. Example: (10..100) # Range from 10 to 100 # the following code does the same as above: Range new: 10 to: 100 """ include: FancyEnumerable def to_s { """ Same as Range#inspect """ inspect } def inspect { """ @return @String@ representation of @self. """ "(" ++ @start ++ ".." ++ @end ++ ")" } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fancy-0.4.0 | lib/range.fy |