Skip to content
instance method

Dir#pos

() -> ::Integer
pos

Alias of #tell

Returns the current position of self; see Dir As Stream-Like:

Example
dir = Dir.new('example')
dir.tell  # => 0
dir.read  # => "."
dir.tell  # => 1
See also #tell #pos= #path #inspect also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0