# File Ouroboros.rb, line 144 def []=( offset, new_obj ) self.delete( new_obj ) new_obj.extend( PrevNext ) i = new_obj._ouroboros_index = (@current_index+offset) % @size @all[ i ] = new_obj (new_obj.prev = @all[ (i-1) % @size ]).next = new_obj (new_obj.next = @all[ (i+1) % @size ]).prev = new_obj end