Exception: MusicUtils::InvalidNote
- Defined in:
- lib/music-utils/errors/note_errors.rb
Overview
This exception its raised when a given note is invalid
Instance Attribute Summary collapse
-
#note ⇒ Object
readonly
Returns the value of attribute note.
Attributes inherited from StdError
Instance Method Summary collapse
-
#initialize(msg, original = $!, note) ⇒ InvalidNote
constructor
A new instance of InvalidNote.
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
#note ⇒ Object (readonly)
Returns the value of attribute note.
6 7 8 |
# File 'lib/music-utils/errors/note_errors.rb', line 6 def note @note end |