Class: ScaleDSL::StringContext
- Inherits:
-
Object
- Object
- ScaleDSL::StringContext
- Defined in:
- lib/scale_dsl/scale_dsl.rb
Instance Attribute Summary collapse
-
#finger_array ⇒ Object
readonly
Returns the value of attribute finger_array.
-
#fret_array ⇒ Object
readonly
Returns the value of attribute fret_array.
-
#interval_array ⇒ Object
readonly
Returns the value of attribute interval_array.
Instance Method Summary collapse
- #fingering(*fingers) ⇒ Object
- #frets(*frets) ⇒ Object
-
#initialize ⇒ StringContext
constructor
A new instance of StringContext.
- #intervals(*vals) ⇒ Object
Constructor Details
#initialize ⇒ StringContext
Returns a new instance of StringContext.
28 29 30 31 |
# File 'lib/scale_dsl/scale_dsl.rb', line 28 def initialize() @fret_array = [] @finger_array = [] end |
Instance Attribute Details
#finger_array ⇒ Object (readonly)
Returns the value of attribute finger_array.
25 26 27 |
# File 'lib/scale_dsl/scale_dsl.rb', line 25 def finger_array @finger_array end |
#fret_array ⇒ Object (readonly)
Returns the value of attribute fret_array.
24 25 26 |
# File 'lib/scale_dsl/scale_dsl.rb', line 24 def fret_array @fret_array end |
#interval_array ⇒ Object (readonly)
Returns the value of attribute interval_array.
26 27 28 |
# File 'lib/scale_dsl/scale_dsl.rb', line 26 def interval_array @interval_array end |
Instance Method Details
#fingering(*fingers) ⇒ Object
37 38 39 |
# File 'lib/scale_dsl/scale_dsl.rb', line 37 def fingering(*fingers) @finger_array = fingers end |
#frets(*frets) ⇒ Object
33 34 35 |
# File 'lib/scale_dsl/scale_dsl.rb', line 33 def frets(*frets) @fret_array = frets end |
#intervals(*vals) ⇒ Object
41 42 43 |
# File 'lib/scale_dsl/scale_dsl.rb', line 41 def intervals(*vals) @interval_array = vals end |