ÿØÿà JFIF    ÿÛ „ ( %!1!%*+...983,7(-.- U:RDoc::AnyMethod[iI" seek:ETI" IO#seek;TF: privateo:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [I"5Seeks to the position given by integer +offset+ ;TI"0(see {Position}[#class-IO-label-Position]) ;TI",and constant +whence+, which is one of:;To:RDoc::Markup::BlankLineo:RDoc::Markup::List: @type: BULLET: @items[o:RDoc::Markup::ListItem: @label0; [o; ; [I"&+:CUR+ or IO::SEEK_CUR: ;TI"LRepositions the stream to its current position plus the given +offset+:;T@o:RDoc::Markup::Verbatim; [ I"f = File.open('t.txt') ;TI"f.tell # => 0 ;TI"f.seek(20, :CUR) # => 0 ;TI"f.tell # => 20 ;TI"f.seek(-10, :CUR) # => 0 ;TI"f.tell # => 10 ;T: @format0o;;0; [o; ; [I"&+:END+ or IO::SEEK_END: ;TI"?Repositions the stream to its end plus the given +offset+:;T@o;; [ I"f = File.open('t.txt') ;TI"f.tell # => 0 ;TI" 0 # Repositions to stream end. ;TI"f.tell # => 70 ;TI"f.seek(-20, :END) # => 0 ;TI"f.tell # => 50 ;TI"f.seek(-40, :END) # => 0 ;TI"f.tell # => 30 ;T;0o;;0; [o; ; [I"%+:SET+ or IO:SEEK_SET: ;TI"2Repositions the stream to the given +offset+:;T@o;; [ I"f = File.open('t.txt') ;TI"f.tell # => 0 ;TI"f.seek(20, :SET) # => 0 ;TI"f.tell # => 20 ;TI"f.seek(40, :SET) # => 0 ;TI"f.tell # => 40 ;T;0o; ; [I"Related: IO#pos=, IO#tell.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I".seek(offset, whence = IO::SEEK_SET) -> 0 ;T0[I"(p1, p2 = v2);T@BFI"IO;TcRDoc::NormalClass00