Exception: Interval::Exception::OpenRight

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/interval.rb

Overview

Exception class for failed preconditions on range type.

Instance Method Summary collapse

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