diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-23 21:45:33 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-23 21:45:33 +0200 |
commit | 31d2196c94b2731b305b5c8704b0a956bf37c544 (patch) | |
tree | 39901db0e3be19a12b3ed7078e21653fe7842df1 | |
parent | 40f6759106bc429ff49cdaefdf8901ebb68688c1 (diff) | |
download | colonial-twilight-31d2196c94b2731b305b5c8704b0a956bf37c544.zip colonial-twilight-31d2196c94b2731b305b5c8704b0a956bf37c544.tar.gz |
Track : must return new value
-rw-r--r-- | lib/colonial_twilight/spaces.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/colonial_twilight/spaces.rb b/lib/colonial_twilight/spaces.rb index 35e99ac..6bf9384 100644 --- a/lib/colonial_twilight/spaces.rb +++ b/lib/colonial_twilight/spaces.rb @@ -15,6 +15,7 @@ module ColonialTwilight def shift(val) @v += val raise "out of track #{@v}" if @v.negative? || @v > @max + @v end def clamp(val) |