Exception: MusicUtils::InvalidInterval

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

Overview

This exception its raised when a given interval is invalid

Instance Attribute Summary collapse

Attributes inherited from StdError

#original

Instance Method Summary collapse

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

#intervalObject (readonly)

Returns the value of attribute interval.



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

def interval
  @interval
end