Method: Coltrane::Theory::WrongDegreeError#initialize
- Defined in:
- lib/coltrane/theory/errors.rb
#initialize(degree) ⇒ WrongDegreeError
Returns a new instance of WrongDegreeError.
51 52 53 54 |
# File 'lib/coltrane/theory/errors.rb', line 51 def initialize(degree) super "#{degree} is not a valid degree. Degrees for this scale must be"\ "between 1 and #{degrees}" end |