Class: ScaleDSL::StringContext

Inherits:
Object
  • Object
show all
Defined in:
lib/scale_dsl/scale_dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStringContext

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_arrayObject (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_arrayObject (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_arrayObject (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