Results for: "OptionParser"

Get an array of all Instruction children. IMMUTABLE

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

for IO.copy_stream. Note: we may return a larger string than size here; but IO.copy_stream does not care.

Similar to read, but raises EOFError at end of string instead of returning nil, as well as IO#sysread does.

Reads at most maxlen bytes from the stream. If buf is provided it must reference a string which will receive the data.

See IO#readpartial for full details.

If a block is given, it prints out each of the elements encountered. Block parameters are (in that order):

Example

der = File.binread('asn1data.der')
OpenSSL::ASN1.traverse(der) do | depth, offset, header_len, length, constructed, tag_class, tag|
  puts "Depth: #{depth} Offset: #{offset} Length: #{length}"
  puts "Header length: #{header_len} Tag: #{tag} Tag class: #{tag_class} Constructed: #{constructed}"
end

Returns whether the form contained multipart/form-data

returns a charset parameter in Content-Type field. It is downcased for canonicalization.

If charset parameter is not given but a block is given, the block is called and its result is returned. It can be used to guess charset.

If charset parameter and block is not given, nil is returned except text type. In that case, “utf-8” is returned as defined by RFC6838 4.2.1

No documentation available
No documentation available

<!NOTATION …>

Called when an instruction is encountered. EG: <?xsl sheet=‘foo’?> @p name the instruction name; in the example, “xsl” @p instruction the rest of the instruction. In the example, “sheet=‘foo’”

<!NOTATION …>

No documentation available

The server hostname

The server hostname

Gets various OpenSSL options.

Sets various OpenSSL options.

Search took: 6ms  ·  Total Results: 4629