Class: GabcClef
Instance Attribute Summary collapse
-
#bemol ⇒ Object
Boolean.
-
#line ⇒ Object
Integer 1…4.
-
#pitch ⇒ Object
‘c’ or ‘f’.
Attributes inherited from Immutable
Instance Method Summary collapse
Methods inherited from Immutable
Constructor Details
This class inherits a constructor from Immutable
Instance Attribute Details
#bemol ⇒ Object
Boolean
49 50 51 |
# File 'lib/lygre/gabcscore.rb', line 49 def bemol @bemol end |
#line ⇒ Object
Integer 1…4
46 47 48 |
# File 'lib/lygre/gabcscore.rb', line 46 def line @line end |
#pitch ⇒ Object
‘c’ or ‘f’
43 44 45 |
# File 'lib/lygre/gabcscore.rb', line 43 def pitch @pitch end |
Instance Method Details
#to_s ⇒ Object
51 52 53 |
# File 'lib/lygre/gabcscore.rb', line 51 def to_s "#{pitch}#{bemol ? 'b' : ''}#{line}" end |