vendor/gems/rubyzip-0.9.1/lib/quiz1/t/solutions/Florian Gross/solitaire.rb
# Moves the item from a specified index to
# just before the item with the specified index.
Moves the item from a specified index to
just before the item with the specified index.
Moves the item from a specified index to just before the item with the specified index .
def move(from_index, to_index)
    from_index += self.size if from_index < 0
    to_index += self.size if to_index < 0
    item = self.slice!(from_index)
    self.insert(to_index, item)
  end
def move ( from_index , to_index ) from_index += self . size if from_index < 0 to_index += self . size if to_index < 0 item = self . slice! ( from_index ) self . insert ( to_index , item ) end
Moves the item from a specified index to
just before the item with the specified index.
Moves the item from a specified index to just before the item with the specified index .
from_index
<not_specific>
to_index
<not_specific>