Pushes character c back onto the stream such that a subsequent buffered character read will return it.
Unlike IO#getc
multiple bytes may be pushed back onto the stream.
Has no effect on unbuffered reads (such as sysread).
Returns true
if field 'Transfer-Encoding'
exists and has value 'chunked'
, false
otherwise; see Transfer-Encoding response header:
res = Net::HTTP.get_response(hostname, '/todos/1') res['Transfer-Encoding'] # => "chunked" res.chunked? # => true
Zlib::GzipReader
wrapper that unzips data
.
Visit the body of a structure that can have either a set of statements or statements wrapped in rescue/else/ensure.
while foo; bar end ^^^^^^^^^^^^^^^^^^
bar while foo ^^^^^^^^^^^^^
Add file name
with permissions mode
size
bytes long. Yields an IO
to write the file to.
foo rescue bar ^^^^^^^^^^^^^^
foo rescue bar ^^^^^^^^^^^^^^
Return the best specification that contains the file matching path
, among those already activated.
Return the best specification in the record that contains the file matching path
, among those already activated.
Creates a digest object and reads a given file, name. Optional arguments are passed to the constructor of the digest class.
p Digest::SHA256.file("X11R6.8.2-src.tar.bz2").hexdigest # => "f02e3c85572dc9ad7cb77c2a638e3be24cc1b5bea9fdbb0b0299c9668475c534"
Array
of the currently loaded libraries.
Clear the reference to the object this is pinning.
Returns true if the reference has been cleared, otherwise returns false.
Returns true
if this is a null pointer.