Class: InevitableCacophony::Phrase
- Inherits:
-
Object
- Object
- InevitableCacophony::Phrase
- Defined in:
- lib/inevitable_cacophony/phrase.rb
Instance Attribute Summary collapse
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
-
#tempo ⇒ Object
readonly
Returns the value of attribute tempo.
Instance Method Summary collapse
-
#initialize(*notes, tempo: raise) ⇒ Phrase
constructor
A new instance of Phrase.
Constructor Details
#initialize(*notes, tempo: raise) ⇒ Phrase
Returns a new instance of Phrase.
9 10 11 12 |
# File 'lib/inevitable_cacophony/phrase.rb', line 9 def initialize(*notes, tempo: raise) @tempo = tempo @notes = notes end |
Instance Attribute Details
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
14 15 16 |
# File 'lib/inevitable_cacophony/phrase.rb', line 14 def notes @notes end |
#tempo ⇒ Object (readonly)
Returns the value of attribute tempo.
14 15 16 |
# File 'lib/inevitable_cacophony/phrase.rb', line 14 def tempo @tempo end |