--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::H level: 1 text: LinkedList - !ruby/struct:SM::Flow::P body: LinkedList implements a simple doubly linked list with efficient hash-like element access. - !ruby/struct:SM::Flow::P body: This is a simple linked list implementation with efficient random access of data elements. It was inspired by George Moscovitis' LRUCache implementation found in Facets 1.7.30, but unlike the linked list in that cache, this one does not require the use of a mixin on any class to be stored. The linked list provides the push, pop, shift, unshift, first, last, delete and length methods which work just like their namesakes in the Array class, but it also supports setting and retrieving values by key, just like a hash. constants: [] full_name: LinkedList includes: - !ruby/object:RI::IncludedModule name: Enumerable instance_methods: - !ruby/object:RI::MethodSummary name: "[]" - !ruby/object:RI::MethodSummary name: "[]=" - !ruby/object:RI::MethodSummary name: delete - !ruby/object:RI::MethodSummary name: each - !ruby/object:RI::MethodSummary name: empty? - !ruby/object:RI::MethodSummary name: first - !ruby/object:RI::MethodSummary name: last - !ruby/object:RI::MethodSummary name: length - !ruby/object:RI::MethodSummary name: node_delete - !ruby/object:RI::MethodSummary name: node_join - !ruby/object:RI::MethodSummary name: node_purge - !ruby/object:RI::MethodSummary name: pop - !ruby/object:RI::MethodSummary name: push - !ruby/object:RI::MethodSummary name: queue - !ruby/object:RI::MethodSummary name: shift - !ruby/object:RI::MethodSummary name: to_a - !ruby/object:RI::MethodSummary name: unshift name: LinkedList superclass: Object