method
seek
v1_8_6_287 -
Show latest stable
- Class:
StringIO
seek(offset,whence)public
No documentation available.
# File lib/yaml/stringio.rb, line 38
def seek(offset,whence)
case whence
when 0
@pos=offset
when 1
@pos+=offset
when 2
@[email protected]+offset
end
@eof=(@pos>[email protected])
0
end