Class: HeadMusic::MusicalSymbol

Inherits:
Object
  • Object
show all
Defined in:
lib/head_music/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.



7
8
9
10
11
# File 'lib/head_music/musical_symbol.rb', line 7

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.



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

def ascii
  @ascii
end

#html_entityObject (readonly)

Returns the value of attribute html_entity.



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

def html_entity
  @html_entity
end

#unicodeObject (readonly)

Returns the value of attribute unicode.



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

def unicode
  @unicode
end