Exception: Interval::Exception::OpenRight
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Interval::Exception::OpenRight
- Defined in:
- lib/interval.rb
Overview
Exception class for failed preconditions on range type.
Instance Method Summary collapse
-
#initialize(range) ⇒ OpenRight
constructor
A new instance of OpenRight.
Constructor Details
#initialize(range) ⇒ OpenRight
Returns a new instance of OpenRight.
821 822 823 824 825 |
# File 'lib/interval.rb', line 821 def initialize(range) super( "Cannot construct an interval from a three-dot range " \ "with end-value of type #{range.last.class}.") end |