lib/geom2d/utils/sorted_linked_list.rb
# Inserts this node before the given node.
Inserts this node before the given node.
Inserts this node before the given node .
def insert_before(node)
          @prev_node = node.prev_node
          @next_node = node
          node.prev_node.next_node = self
          node.prev_node = self
          self
        end
def insert_before ( node ) @prev_node = node . prev_node @next_node = node node . prev_node . next_node = self node . prev_node = self self end
Inserts this node before the given node.
Inserts this node before the given node .
node
<not_specific>