Class SizedList
In: lib/production_log/analyzer.rb
Parent: Array

A list that only stores limit items.

Methods

<<   new  

Public Class methods

Creates a new SizedList that can hold up to limit items. Whenever adding a new item to the SizedList would make the list larger than limit, delete_block is called.

delete_block is passed the list and the item being added. delete_block must take action to remove an item and return true or return false if the item should not be added to the list.

Public Instance methods

Attempts to add obj to the list.

[Validate]