Exception: MusicUtils::InvalidNote

Inherits:
StdError
  • Object
show all
Defined in:
lib/music-utils/errors/note_errors.rb

Overview

This exception its raised when a given note is invalid

Instance Attribute Summary collapse

Attributes inherited from StdError

#original

Instance Method Summary collapse

Constructor Details

#initialize(msg, original = $!, note) ⇒ InvalidNote

Returns a new instance of InvalidNote.



8
9
10
11
# File 'lib/music-utils/errors/note_errors.rb', line 8

def initialize(msg, original=$!, note)
  super(msg, original)
  @note = note
end

Instance Attribute Details

#noteObject (readonly)

Returns the value of attribute note.



6
7
8
# File 'lib/music-utils/errors/note_errors.rb', line 6

def note
  @note
end