Method: Sequence#pos=

Defined in:
lib/sequence.rb

#pos=(p) ⇒ Object

Set #pos to be p. When p is negative, it is set from the end.



334
335
336
337
# File 'lib/sequence.rb', line 334

def pos=(p)
    position?(p) and p=p.pos unless Integer===p
    self._pos=_normalize_pos p
end