Exception: Interval::Exception::Nonsimple

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(i) ⇒ Nonsimple

Returns a new instance of Nonsimple.



814
815
816
# File 'lib/interval.rb', line 814

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