Class: Coltrane::Theory::ProgressionSet
- Inherits:
-
Object
- Object
- Coltrane::Theory::ProgressionSet
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/coltrane/theory/progression_set.rb
Instance Attribute Summary collapse
-
#progressions ⇒ Object
Returns the value of attribute progressions.
Instance Method Summary collapse
-
#initialize(*progressions) ⇒ ProgressionSet
constructor
A new instance of ProgressionSet.
Constructor Details
#initialize(*progressions) ⇒ ProgressionSet
Returns a new instance of ProgressionSet.
13 14 15 |
# File 'lib/coltrane/theory/progression_set.rb', line 13 def initialize(*progressions) @progressions = progressions.sort_by(&:notes_out_size) end |
Instance Attribute Details
#progressions ⇒ Object
Returns the value of attribute progressions.
11 12 13 |
# File 'lib/coltrane/theory/progression_set.rb', line 11 def progressions @progressions end |