Results for: "fnmatch"

Checks if there are duplicate links with the same type and hreflang attributes that have an alternate (or empty) rel attribute

Raises a TooMuchTagError if there are duplicates found

No documentation available
No documentation available

Allocates a C struct with the types provided.

When the instance is garbage collected, the C function func is called.

Allocates a C union the types provided.

When the instance is garbage collected, the C function func is called.

Fiddle::Pointer.malloc(size, freefunc = nil)  => fiddle pointer instance

Allocate size bytes of memory and associate it with an optional freefunc that will be called when the pointer is garbage collected.

freefunc must be an address pointing to a function or an instance of Fiddle::Function

Encrypts data in a streaming fashion. Hand consecutive blocks of data to the update method in order to encrypt it. Returns the encrypted data chunk. When done, the output of Cipher#final should be additionally added to the result.

Parameters

data is a nonempty string. buffer is an optional string to store the result.

Indicated whether this Cipher instance uses an Authenticated Encryption mode.

For a block.

Receive the section and its pairs for the current configuration.

config.each do |section, key, value|
  # ...
end

Not every message digest can be computed in one single pass. If a message digest is to be computed from several subsequent sources, then each may be passed individually to the Digest instance.

Example

digest = OpenSSL::Digest::SHA256.new
digest.update('First input')
digest << 'Second input' # equivalent to digest.update('Second input')
result = digest.digest

Returns self updated with the message to be authenticated. Can be called repeatedly with chunks of the message.

Example

first_chunk = 'The quick brown fox jumps '
second_chunk = 'over the lazy dog'

instance.update(first_chunk)
#=> 5b9a8038a65d571076d97fe783989e52278a492a
instance.update(second_chunk)
#=> de7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9

Parameters

Any optional arguments may be supplied as nil to preserve the OpenSSL defaults.

See the OpenSSL documentation for PKCS12_create().

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

Emit a map. The coder will be yielded to the block.

Emit a map with value

Returns the exit status of the child for which PTY#check raised this exception

returns the cmsg data as a string.

p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").data
#=> ""

Returns the netmask address of ifaddr. nil is returned if netmask is not available in ifaddr.

returns the socket option data as a string.

p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).data
#=> "\x01\x00\x00\x00"

Logs a message at the fatal (syslog err) log level, or logs the message returned from the block.

Search took: 3ms  ·  Total Results: 2025