Emit a scalar with value
, anchor
, tag
, and a plain
or quoted
string type with style
.
Enter error recovering mode. This method does not call on_error
.
Leave error recovering mode.
The line number of the current token. This value starts from 1. This method is valid only in event handlers.
Starts the parser. init
is a data accumulator and is passed to the next event handler (as of Enumerable#inject
).
Returns the netmask address of ifaddr. nil is returned if netmask is not available in ifaddr.
Logs a message
at the error (syslog warning) log level, or logs the message returned from the block.
Logs a message
at the warn (syslog notice) log level, or logs the message returned from the block.
Creates a GzipReader
or GzipWriter
associated with io
, passing in any necessary extra options, and executes the block with the newly created object just like File.open
.
The GzipFile
object will be closed automatically after executing the block. If you want to keep the associated IO
object open, you may call Zlib::GzipFile#finish
method in the block.
The line number of the last row read from this file.
Specify line number of the last row read from this file.
Resets the position of the file pointer to the point created the GzipReader
object. The associated IO
object needs to respond to the seek
method.
Reads at most maxlen bytes from the gziped stream but it blocks only if gzipreader has no data immediately available. If the optional outbuf argument is present, it must reference a String
, which will receive the data. It raises EOFError
on end of file.
See Zlib::GzipReader
documentation for a description.
See Zlib::GzipReader
documentation for a description.
This is a deprecated alias for each_line
.
See Zlib::GzipReader
documentation for a description.
Returns true
if the effective user id of the process is the same as the owner of stat.
File.stat("testfile").owned? #=> true File.stat("/etc/passwd").owned? #=> false
Returns true if the effective group id of the process is the same as the group id of stat. On Windows NT, returns false
.
File.stat("testfile").grpowned? #=> true File.stat("/etc/passwd").grpowned? #=> false
Returns true
if the file is a character device, false
if it isn’t or if the operating system doesn’t support this feature.
File.stat("/dev/tty").chardev? #=> true
A short summary of this gem’s description.
Recursively walk dependencies of this spec, executing the block
for each hop.