Class: Hexpress::Values::Range
- Includes:
- Hexpress::Values
- Defined in:
- lib/hexpress/values/range.rb
Instance Attribute Summary
Attributes included from Hexpress::Values
Instance Method Summary collapse
-
#initialize(range) ⇒ Range
constructor
A new instance of Range.
Methods included from Hexpress::Values
Constructor Details
#initialize(range) ⇒ Range
Returns a new instance of Range.
22 23 24 25 |
# File 'lib/hexpress/values/range.rb', line 22 def initialize(range) @values = [range.first, range.last] @delimiter = "-" end |