Path of activations from the current
list.
Return a String
indicating who caused this request to be added (only valid for implicit requests)
Returns the path to the trusted certificate with the given ASN.1 name
Add a certificate to trusted certificate list.
Returns the full file path of this frame.
Same as path
, except that it will return absolute path even if the frame is in the main script.
@param [String] name @return [Object] the requirement that led to a version of a possibility
with the given name being activated.
Iterates the given block for each element with an index, which starts from offset
. If no block is given, returns a new Enumerator
that includes the index, starting from offset
offset
the starting index to use
Returns a new lazy enumerator with the concatenated results of running block
once for every element in the lazy enumerator.
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force #=> ["f", "o", "o", "b", "a", "r"]
A value x
returned by block
is decomposed if either of the following conditions is true:
x
responds to both each and force, which means that x
is a lazy enumerator.
x
is an array or responds to to_ary.
Otherwise, x
is contained as-is in the return value.
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force #=> [{:a=>1}, {:b=>2}]
Load an iseq object from binary format String
object created by RubyVM::InstructionSequence.to_binary
.
This loader does not have a verifier, so that loading broken/modified binary causes critical problem.
You should not load binary data provided by others. You should use binary data translated by yourself.
Creates a regular expression to match IPv4 addresses
Set
the default value for the :load_limit option.
See new(). The initial default value is 25 MB.
Set
the default value for the :id_conv option.
See new(). The initial default value is a DRbIdConv
instance.
The default port to use for HTTP
requests; defaults to 80.
The default port to use for HTTPS requests; defaults to 443.
The default port for IMAPS connections, port 993
Adds a response handler. For example, to detect when the server sends a new EXISTS response (which normally indicates new messages being added to the mailbox), add the following handler after selecting the mailbox:
imap.add_response_handler { |resp| if resp.kind_of?(Net::IMAP::UntaggedResponse) and resp.name == "EXISTS" puts "Mailbox now has #{resp.data} messages" end }