Method: Utils::Grepper::Queue#push
- Defined in:
- lib/utils/grepper.rb
#push(x) ⇒ Object Also known as: <<
24 25 26 27 28 |
# File 'lib/utils/grepper.rb', line 24 def push(x) @data.shift if @data.size > @max_size @data << x self end |
24 25 26 27 28 |
# File 'lib/utils/grepper.rb', line 24 def push(x) @data.shift if @data.size > @max_size @data << x self end |