Results for: "slice"

Called when an alias is found to anchor. anchor will be the name of the anchor found.

Example

Here we have an example of an array that references itself in YAML:

--- &ponies
- first element
- *ponies

&ponies is the anchor, *ponies is the alias. In this case, alias is called with “ponies”.

No documentation available

Emit an alias with anchor.

See Psych::Handler#alias

Get the output style, canonical or not.

Set the output style to canonical, or not.

The line number of the current token. This value starts from 1. This method is valid only in event handlers.

Creates a new Socket::Option object for SOL_SOCKET/SO_LINGER.

onoff should be an integer or a boolean.

secs should be the number of seconds.

p Socket::Option.linger(true, 10)
#=> #<Socket::Option: UNSPEC SOCKET LINGER on 10sec>

Returns the linger data in sockopt as a pair of boolean and integer.

sockopt = Socket::Option.linger(true, 10)
p sockopt.linger => [true, 10]

Returns array of type libraries.

This method will be OBSOLETE. Use WIN32OLE::TypeLib.typelibs.collect{|t| t.name} instead.

typelibs

Returns the array of WIN32OLE::TypeLib object.

tlibs = WIN32OLE::TypeLib.typelibs

The line number of the last row read from this file.

Specify line number of the last row read from this file.

See Zlib::GzipReader documentation for a description.

See Zlib::GzipReader documentation for a description.

Returns the number of hard links to stat.

File.stat("testfile").nlink             #=> 1
File.link("testfile", "testfile.bak")   #=> 0
File.stat("testfile").nlink             #=> 2

Returns true if stat is a symbolic link, false if it isn’t or if the operating system doesn’t support this feature. As File::stat automatically follows symbolic links, symlink? will always be false for an object returned by File::stat.

File.symlink("testfile", "alink")   #=> 0
File.stat("alink").symlink?         #=> false
File.lstat("alink").symlink?        #=> true

Returns true if stat has its sticky bit set, false if it doesn’t or if the operating system doesn’t support this feature.

File.stat("testfile").sticky?   #=> false

Returns whether the buffer buffer is accessible.

A buffer becomes invalid if it is a slice of another buffer (or string) which has been freed or re-allocated at a different address.

No documentation available

Sends a TRACE request to the server; returns an instance of a subclass of Net::HTTPResponse.

The request is based on the Net::HTTP::Trace object created from string path and initial headers hash initheader.

http = Net::HTTP.new(hostname)
http.trace('/todos/1')

Sends a TRACE request to the server; returns an instance of a subclass of Net::HTTPResponse.

The request is based on the Net::HTTP::Trace object created from string path and initial headers hash initheader.

http = Net::HTTP.new(hostname)
http.trace('/todos/1')

def accept: (Visitor visitor) -> void

def accept: (Visitor visitor) -> void

def accept: (Visitor visitor) -> void

def accept: (Visitor visitor) -> void

Search took: 1ms  ·  Total Results: 1423