Exception: Interval::Exception::Construction
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Interval::Exception::Construction
- Defined in:
- lib/interval.rb
Overview
Exception class for failed preconditions on construction arguments.
Instance Method Summary collapse
-
#initialize(array) ⇒ Construction
constructor
A new instance of Construction.
Constructor Details
#initialize(array) ⇒ Construction
Returns a new instance of Construction.
797 798 799 800 801 802 |
# File 'lib/interval.rb', line 797 def initialize(array) super( "An interval can only be constructed either from at most two " \ "numbers or from a sequence of arrays of at most two numbers: " + array.inspect) end |