Class: StringIO

Inherits:
Object
  • Object
show all
Defined in:
lib/archive/support/stringio.rb

Overview

This extends StringIO to include additional methods required by the io-like library to wrap IO objects.

Instance Method Summary collapse

Instance Method Details

#nonblock?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/archive/support/stringio.rb', line 17

def nonblock?
  false
end

#sysseek(offset, whence = IO::SEEK_SET) ⇒ Object



10
11
12
13
# File 'lib/archive/support/stringio.rb', line 10

def sysseek(offset, whence = IO::SEEK_SET)
  seek(offset, whence)
  pos
end

#wait(*args) ⇒ Object



23
24
25
# File 'lib/archive/support/stringio.rb', line 23

def wait(*args)
  return true
end