mixins/fake_indexable_container |
module FakeIndexableContainer |
TODO: This *could* be better optimized
Public Methods |
Retrieve an element at a particular index
index | the index of the element to retrieve |
---|
Returns: the desired element
Set an element at a particular index
index | the index of the element to set |
---|---|
value | the new value |
Returns: the value that was set
Iterate through all elements with index and value
Returns: the last value from the last call to yield