D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Dir
/
Filename :
seek-i.ri
back
Copy
U:RDoc::AnyMethod[iI" seek:ETI" Dir#seek;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"5Sets the position in +self+ and returns +self+. ;TI"VThe value of +position+ should have been returned from an earlier call to #tell; ;TI"Nif not, the return values from subsequent calls to #read are unspecified.;To:RDoc::Markup::BlankLine o; ; [I"?See {Dir As Stream-Like}[rdoc-ref:Dir@Dir+As+Stream-Like].;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"dir = Dir.new('example') ;TI"dir.pos # => 0 ;TI"&dir.seek(3) # => #<Dir:example> ;TI"dir.pos # => 3 ;TI"&dir.seek(30) # => #<Dir:example> ;TI"dir.pos # => 5;T:@format0: @fileI" dir.c;T:0@omit_headings_from_table_of_contents_below0I"seek(position) -> self ;T0[ I" (p1);T@FI"Dir;TcRDoc::NormalClass00