Class: HeadMusic::Rudiment::MusicalSymbol
- Defined in:
- lib/head_music/rudiment/musical_symbol.rb
Overview
A symbol is a mark or sign that signifies a particular rudiment of music
Instance Attribute Summary collapse
-
#ascii ⇒ Object
readonly
Returns the value of attribute ascii.
-
#html_entity ⇒ Object
readonly
Returns the value of attribute html_entity.
-
#unicode ⇒ Object
readonly
Returns the value of attribute unicode.
Instance Method Summary collapse
-
#initialize(ascii: nil, unicode: nil, html_entity: nil) ⇒ MusicalSymbol
constructor
A new instance of MusicalSymbol.
Constructor Details
#initialize(ascii: nil, unicode: nil, html_entity: nil) ⇒ MusicalSymbol
Returns a new instance of MusicalSymbol.
8 9 10 11 12 |
# File 'lib/head_music/rudiment/musical_symbol.rb', line 8 def initialize(ascii: nil, unicode: nil, html_entity: nil) @ascii = ascii @unicode = unicode @html_entity = html_entity end |
Instance Attribute Details
#ascii ⇒ Object (readonly)
Returns the value of attribute ascii.
6 7 8 |
# File 'lib/head_music/rudiment/musical_symbol.rb', line 6 def ascii @ascii end |
#html_entity ⇒ Object (readonly)
Returns the value of attribute html_entity.
6 7 8 |
# File 'lib/head_music/rudiment/musical_symbol.rb', line 6 def html_entity @html_entity end |
#unicode ⇒ Object (readonly)
Returns the value of attribute unicode.
6 7 8 |
# File 'lib/head_music/rudiment/musical_symbol.rb', line 6 def unicode @unicode end |