Class: HeadMusic::Rudiment::MusicalSymbol

Inherits:
Base
  • Object
show all
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

Instance Method Summary collapse

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

#asciiObject (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_entityObject (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

#unicodeObject (readonly)

Returns the value of attribute unicode.



6
7
8
# File 'lib/head_music/rudiment/musical_symbol.rb', line 6

def unicode
  @unicode
end