lib/head_music/sign.rb in head_music-0.23.2 vs lib/head_music/sign.rb in head_music-0.23.3

- old
+ new

@@ -4,11 +4,11 @@ # A Sign is a symbol that modifies pitch, such as a sharp, flat, or natural. class HeadMusic::Sign include Comparable - attr_reader :identifier, :cents, :symbol + attr_reader :identifier, :cents, :musical_symbol def self.all @all ||= [ new(identifier: :sharp, ascii: '#', unicode: '♯', html_entity: '&#9839;', cents: 100), new(identifier: :flat, ascii: 'b', unicode: '♭', html_entity: '&#9837;', cents: -100), @@ -64,18 +64,18 @@ def <=>(other) other = HeadMusic::Sign.get(other) cents <=> other.cents end - delegate :ascii, :html_entity, :unicode, to: :symbol + delegate :ascii, :html_entity, :unicode, to: :musical_symbol private def initialize(attributes) @identifier = attributes[:identifier] @cents = attributes[:cents] - @symbol = HeadMusic::Symbol.new( + @musical_symbol = HeadMusic::MusicalSymbol.new( unicode: attributes[:unicode], ascii: attributes[:ascii], html_entity: attributes[:html_entity] ) end