class Bluepill::Util::RotationalArray
Public Class Methods
new(size)
click to toggle source
Calls superclass method
# File lib/bluepill/util/rotational_array.rb, line 4 def initialize(size) @capacity = size super() # no size - intentionally end
Public Instance Methods
push(value)
click to toggle source
Calls superclass method
# File lib/bluepill/util/rotational_array.rb, line 10 def push(value) super(value) shift if length > @capacity self end
Also aliased as: <<