diff --git a/tracks/ruby/exercises/clock/README.md b/tracks/ruby/exercises/clock/README.md index c4c40d6..9c5cfd6 100644 --- a/tracks/ruby/exercises/clock/README.md +++ b/tracks/ruby/exercises/clock/README.md @@ -17,7 +17,7 @@ class Clock end def to_s - "%02d:%02d" % time.divmod(MINUTES_PER_HOUR) + format("%02d:%02d", *time.divmod(MINUTES_PER_HOUR)) end def +(other) @@ -34,7 +34,7 @@ class Clock alias eql? == def hash - [self.class, self.time].hash + [self.class, time].hash end protected