Setter for scope val
.
Returns a string representation of self
:
system("false") $?.inspect # => "#<Process::Status: pid 1303494 exit 1>"
Returns true
if this process is stopped, and if the corresponding wait call had the Process::WUNTRACED flag set, false
otherwise.
Returns the number of the signal that caused the process to stop, or nil
if the process is not stopped.
Returns the least significant eight bits of the return code of the process if it has exited; nil
otherwise:
`exit 99` $?.exitstatus # => 99
Obtains a lock, runs the block, and releases the lock when the block completes. See the example under Thread::Mutex
.
Wakes up all threads waiting for this lock.
Returns a printable version of ec
ec = Encoding::Converter.new("iso-8859-1", "utf-8") puts ec.inspect #=> #<Encoding::Converter: ISO-8859-1 to UTF-8>
Returns a new String
containing informations about the map:
m = ObjectSpace::WeakKeyMap.new m[key] = value m.inspect # => "#<ObjectSpace::WeakKeyMap:0x00000001028dcba8 size=1>"
Creates a printable version of the digest object.
If none is given, returns the resulting hash value of the digest, keeping the digest’s state.
If a string is given, returns the hash value for the given string, resetting the digest to the initial state before and after the process.
Returns the resulting hash value and resets the digest to the initial state.
If none is given, returns the resulting hash value of the digest in a hex-encoded form, keeping the digest’s state.
If a string is given, returns the hash value for the given string in a hex-encoded form, resetting the digest to the initial state before and after the process.
Returns the resulting hash value in a hex-encoded form and resets the digest to the initial state.
If none is given, returns the resulting hash value of the digest in a base64 encoded form, keeping the digest’s state.
If a string
is given, returns the hash value for the given string
in a base64 encoded form, resetting the digest to the initial state before and after the process.
In either case, the return value is properly padded with ‘=’ and contains no line feeds.
Returns the resulting hash value and resets the digest to the initial state.
Creates a class to wrap the C struct described by signature
.
MyStruct = struct ['int i', 'char c']
Creates a class to wrap the C union described by signature
.
MyUnion = union ['int i', 'char c']
Decodes a BER- or DER-encoded value and creates an ASN1Data
instance. der may be a String
or any object that features a .to_der
method transforming it into a BER-/DER-encoded String+
der = File.binread('asn1data') asn1 = OpenSSL::ASN1.decode(der)
Return true
if the PRNG has been seeded with enough data, false
otherwise.
Start streaming using encoding