Exception: Borel::Construction

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

Instance Method Summary collapse

Constructor Details

#initialize(array) ⇒ Construction

Returns a new instance of Construction.



206
207
208
209
210
211
# File 'lib/borel/interval.rb', line 206

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