lib/head_music/interval.rb in head_music-0.8.0 vs lib/head_music/interval.rb in head_music-0.10.0
- old
+ new
@@ -9,10 +9,9 @@
def self.get(semitones)
@intervals ||= {}
@intervals[semitones.to_i] ||= new(semitones.to_i)
end
- singleton_class.send(:alias_method, :[], :get)
def self.named(name)
name = name.to_s
get(NAMES.index(name)) if NAMES.include?(name)
end