Results for: "String#[]"

No documentation available
No documentation available
No documentation available
No documentation available

Compile a InstanceVariableReadNode node

Compile a InstanceVariableTargetNode node

Dispatch enter and leave events for InstanceVariableReadNode nodes and continue walking the tree.

Dispatch enter and leave events for InstanceVariableTargetNode nodes and continue walking the tree.

Copy a InstanceVariableReadNode node

Copy a InstanceVariableTargetNode node

If the stream begins with a BOM (byte order marker), consumes the BOM and sets the external encoding accordingly; returns the result encoding if found, or nil otherwise:

File.write('t.tmp', "\u{FEFF}abc")
io = File.open('t.tmp', 'rb')
io.set_encoding_by_bom # => #<Encoding:UTF-8>
io.close

File.write('t.tmp', 'abc')
io = File.open('t.tmp', 'rb')
io.set_encoding_by_bom # => nil
io.close

Raises an exception if the stream is not binmode or its encoding has already been set.

No documentation available
No documentation available
No documentation available

Returns the last win32 socket Error of the current executing Thread or nil if none

Sets the last win32 socket Error of the current executing Thread to error

Starts tracing object allocations.

Stop tracing object allocations.

Note that if ::trace_object_allocations_start is called n-times, then tracing will stop after calling ::trace_object_allocations_stop n-times.

Raises NoMemoryError when allocating an instance of the given classes.

No longer raises NoMemoryError when allocating an instance of the given classes.

The index to insert activated gem paths into the $LOAD_PATH. The activated gem’s paths are inserted before site lib directory by default.

This integer returns the maximum level of data structure nesting in the generated JSON, max_nesting = 0 if no maximum is checked.

This sets the maximum level of data structure nesting in the generated JSON to the integer depth, max_nesting = 0 if no maximum should be checked.

Extracts ifindex from IPV6_PKTINFO ancillary data.

IPV6_PKTINFO is defined by RFC 3542.

addr = Addrinfo.ip("::1")
ifindex = 0
ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex)
p ancdata.ipv6_pktinfo_ifindex #=> 0

Creates a regular expression to match IPv4 addresses

Search took: 3ms  ·  Total Results: 3744