lib/head_music/consonance.rb in head_music-0.10.0 vs lib/head_music/consonance.rb in head_music-0.11.1

- old
+ new

@@ -12,9 +12,13 @@ def initialize(name) @name = name.to_s.to_sym end + def ==(other) + self.to_s == other.to_s + end + LEVELS.each do |method_name| define_method(:"#{method_name}?") { to_s == method_name } end end