Method: Sequence#position
- Defined in:
- lib/sequence.rb
#position(_pos = pos) ⇒ Object
#position returns a Sequence::Position to represent a location within this sequence. The argument allows you to specify a numeric location for the position; default is currrent position. If the element that a Position is anchored to is deleted, that Position may become invalid or have an unknown behavior.
392 393 394 |
# File 'lib/sequence.rb', line 392 def position(_pos=pos) Position.new(self,_pos) end |