Class: Coltrane::WrongDegreeError

Inherits:
Object
  • Object
show all
Defined in:
lib/coltrane/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(degree) ⇒ WrongDegreeError

Returns a new instance of WrongDegreeError.



44
45
46
47
# File 'lib/coltrane/errors.rb', line 44

def initialize(degree)
  super "#{degree} is not a valid degree. Degrees for this scale must be"\
        "between 1 and #{degrees}"
end