Exception: Interval::Exception::Nonsimple
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Interval::Exception::Nonsimple
- Defined in:
- lib/interval.rb
Overview
Exception class for a failed precondition on an interval being simple.
Instance Method Summary collapse
-
#initialize(i) ⇒ Nonsimple
constructor
A new instance of Nonsimple.
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 |