lib/head_music/pitch.rb in head_music-0.8.0 vs lib/head_music/pitch.rb in head_music-0.10.0
- old
+ new
@@ -12,10 +12,9 @@
delegate :smallest_interval_to, to: :pitch_class
def self.get(value)
from_name(value) || from_number(value)
end
- singleton_class.send(:alias_method, :[], :get)
def self.from_name(name)
return nil unless name == name.to_s
fetch_or_create(HeadMusic::Spelling.get(name), HeadMusic::Octave.get(name).to_i)
end