Class: IO

Public Instance Methods


seekable? ()

Returns true if the seek method of this IO instance would succeed, false otherwise.

    # File lib/archive/support/io.rb, line 6
 6:   def seekable?
 7:     begin
 8:       pos
 9:       true
10:     rescue SystemCallError
11:       false
12:     end
13:   end