lib/head_music/octave.rb in head_music-0.22.0 vs lib/head_music/octave.rb in head_music-0.23.0
- old
+ new
@@ -32,10 +32,10 @@
attr_reader :number
delegate :to_i, :to_s, to: :number
def initialize(number)
- @number ||= number
+ @number = number
end
def <=>(other)
to_i <=> other.to_i
end