lib/bluepill/util/rotational_array.rb in bluepill-0.0.68 vs lib/bluepill/util/rotational_array.rb in bluepill-0.0.69

- old
+ new

@@ -1,6 +1,5 @@ -# -*- encoding: utf-8 -*- module Bluepill module Util class RotationalArray < Array def initialize(size) @capacity = size @@ -9,10 +8,10 @@ end def push(value) super(value) - self.shift if self.length > @capacity + shift if length > @capacity self end alias_method :<<, :push end end