lib/bindata/io.rb
# Checks if positioning is supported by the underlying io stream.
Checks if positioning is supported by the underlying io stream.
Checks if positioning is supported by the underlying io stream .
def positioning_supported?
      unless defined? @positioning_supported
        @positioning_supported = begin
          @raw_io.pos
          true
        rescue NoMethodError, Errno::ESPIPE
          false
        end
      end
      @positioning_supported
    end
def positioning_supported? unless defined? @positioning_supported @positioning_supported = begin @raw_io . pos true rescue NoMethodError , Errno :: ESPIPE false end end @positioning_supported end
Checks if positioning is supported by the underlying io stream.
Checks if positioning is supported by the underlying io stream .