Class: GabcClef

Inherits:
Immutable show all
Defined in:
lib/lygre/gabcscore.rb

Instance Attribute Summary collapse

Attributes inherited from Immutable

#text_value

Instance Method Summary collapse

Methods inherited from Immutable

#initialize

Constructor Details

This class inherits a constructor from Immutable

Instance Attribute Details

#bemolObject

Boolean



49
50
51
# File 'lib/lygre/gabcscore.rb', line 49

def bemol
  @bemol
end

#lineObject

Integer 1…4



46
47
48
# File 'lib/lygre/gabcscore.rb', line 46

def line
  @line
end

#pitchObject

‘c’ or ‘f’



43
44
45
# File 'lib/lygre/gabcscore.rb', line 43

def pitch
  @pitch
end

Instance Method Details

#to_sObject



51
52
53
# File 'lib/lygre/gabcscore.rb', line 51

def to_s
  "#{pitch}#{bemol ? 'b' : ''}#{line}"
end