A convenience package providing a collection of all-purpose Array subclasses.
Event-hooked Array, Sorted Array, Unique Array, Sorted-Unique Array, Downward-Compositing Array, Downward-Compositing Sorted Array, Downward-Compositing Unique Array, Downward-Compositing Sorted-Unique Array.
- sudo gem install array
Basic Event-Hooked Arrays
Event-Hooked Arrays ensure that all method calls go through common points so that event hooks can be inserted.
All Event-Hooked Arrays respond to #initialize( configuration_instance = nil, *args ), where *args is passed to Array#initialize.
- Array::Hooked (provided by array-hooked)
- Array::Sorted (provided by array-sorted)
- Array::Unique (provided by array-unique)
- Array::Sorted::Unique (provided by array-sorted-unique)
Compositing Arrays optionally maintain a parent-child relationship.
All Compositing Arrays respond to #initialize( parent_instance = nil, configuration_instance = nil, *args ), where everything after parent_instance is passed to the relative parent Event-Hooked array #initialize.
- Array::Compositing (provided by array-compositing)
- Array::Sorted::Compositing (provided by array-sorted-compositing)
- Array::Unique::Compositing (provided by array-unique-compositing)
- Array::Sorted::Unique::Compositing (provided by array-sorted-unique-compositing)
(The MIT License)
Copyright (c) Ridiculous Power, Asher
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.