Exception: MusicUtils::InvalidInterval
- Defined in:
- lib/music-utils/errors/interval_errors.rb
Overview
This exception its raised when a given interval is invalid
Instance Attribute Summary collapse
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
Attributes inherited from StdError
Instance Method Summary collapse
-
#initialize(msg, original = $!, interval) ⇒ InvalidInterval
constructor
A new instance of InvalidInterval.
Constructor Details
#initialize(msg, original = $!, interval) ⇒ InvalidInterval
Returns a new instance of InvalidInterval.
8 9 10 11 |
# File 'lib/music-utils/errors/interval_errors.rb', line 8 def initialize(msg, original=$!, interval) super(msg, original) @interval = interval end |
Instance Attribute Details
#interval ⇒ Object (readonly)
Returns the value of attribute interval.
6 7 8 |
# File 'lib/music-utils/errors/interval_errors.rb', line 6 def interval @interval end |