Exception: OneFactorization::InvalidLengthError
- Inherits:
-
StandardError
- Object
- StandardError
- OneFactorization::InvalidLengthError
- Defined in:
- lib/one_factorization.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result) ⇒ InvalidLengthError
constructor
A new instance of InvalidLengthError.
Constructor Details
#initialize(result) ⇒ InvalidLengthError
Returns a new instance of InvalidLengthError.
7 8 9 10 |
# File 'lib/one_factorization.rb', line 7 def initialize result @result = result = 'cannot 1-factorize an array with an odd number of elements' end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/one_factorization.rb', line 6 def result @result end |