lib/head_music/consonance.rb in head_music-0.5.2 vs lib/head_music/consonance.rb in head_music-0.5.3

- old
+ new

@@ -3,9 +3,10 @@ def self.get(name) @consonances ||= {} @consonances[name.to_sym] ||= new(name) if LEVELS.include?(name.to_s) end + singleton_class.send(:alias_method, :[], :get) attr_reader :name delegate :to_s, to: :name