lib/head_music/octave.rb in head_music-0.24.1 vs lib/head_music/octave.rb in head_music-0.24.2
- old
+ new
@@ -29,9 +29,10 @@
def self.default
@octaves[DEFAULT] ||= new(DEFAULT)
end
attr_reader :number
+
delegate :to_i, :to_s, to: :number
def initialize(number)
@number = number
end