class StringIO
StringIO extensions for buffering support.
Definitions
def buffered?
Check if the StringIO is buffered.
Signature
-
returns
Boolean
True if the StringIO is buffered (not synchronized).
Implementation
def buffered?
return !self.sync
end
def buffered=(value)
Set the buffered state of the StringIO.
Signature
-
parameter
value
Boolean
True to enable buffering, false to disable.
Implementation
def buffered=(value)
self.sync = !value
end
def readable?
Check if the StringIO is readable.
Signature
-
returns
Boolean
True if the StringIO is readable (not at EOF).
Implementation
def readable?
!eof?
end