Exception: Interval::Exception::Nondegenerate

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

Overview

Exception class for a failed precondition on an interval being degenerate.

Instance Method Summary collapse

Constructor Details

#initialize(i) ⇒ Nondegenerate

Returns a new instance of Nondegenerate.



807
808
809
# File 'lib/interval.rb', line 807

def initialize(i)
  super("#{i.inspect} is not degenerate.")
end