Results for: "strip"

No documentation available

Loads the given private key identified by id and data.

An EngineError is raised of the OpenSSL::PKey is unavailable.

No documentation available

Extracts addr 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_addr #=> #<Addrinfo: ::1>

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

Takes file, a String with the location of a Ruby source file, reads, parses and compiles the file, and returns iseq, the compiled InstructionSequence with source location metadata set. It parses and compiles using prism.

Optionally takes options, which can be true, false or a Hash, to modify the default behavior of the Ruby iseq compiler.

For details regarding valid compile options see ::compile_option=.

# /tmp/hello.rb
puts "Hello, world!"

# elsewhere
RubyVM::InstructionSequence.compile_file_prism("/tmp/hello.rb")
#=> <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
No documentation available
No documentation available

Returns whether the request may have a body:

Net::HTTP::Post.new(uri).request_body_permitted? # => true
Net::HTTP::Get.new(uri).request_body_permitted?  # => false
No documentation available

Replace the value of start_line with the given value.

The character offset from the beginning of the source where this location starts.

The content of the line where this location starts before this location.

The column number in characters where this location ends from the start of the line.

Compile a name associated with a constant.

Converts this AvailableSet into a RequestSet that can be used to install gems.

If development is :none then no development dependencies are installed. Other options are :shallow for only direct development dependencies of the gems in this set or :all for all development dependencies.

No documentation available

Return an array of extra arguments for the command. The extra arguments come from the gem configuration file read at program startup.

Adds extra args from ~/.gemrc

No documentation available

The name of the state file.

Reads time of last update check from state file

Writes time of last update check to state file

True if the gems in the system satisfy dependency.

Writes the full .gemspec specification (in Ruby) to the gem home’s specifications/default directory.

In contrast to write_spec, this keeps file lists, so the ‘gem contents` command works.

Search took: 5ms  ·  Total Results: 1654