define methodname as instance method of current module, using ERB
object or eRuby file
define methodname as instance method of current module, using ERB
object or eRuby file
def foo(&bar); end ^^^^
A block’s parameters.
Foo::Bar ^^^^^^^^
def foo(…); end ^^^
-> { it } ^^^^^^^^^
-> { 1 + 2 } ^^^^^^^^^^^^^^
Visit a destructured positional parameter node.
def foo(bar); end ^^^
Get all [gem, version] from the command line.
An argument in the form gem:ver is pull apart into the gen name and version, respectively.
foo => bar | baz ^^^^^^^^^
def foo(bar = 1); end ^^^^^^^
foo => bar | baz ^^^^^^^^^
def foo(bar = 1); end ^^^^^^^
Validates the Diffie-Hellman parameters associated with this instance. It checks whether a safe prime and a suitable generator are used. If this is not the case, false
is returned.
See also the man page EVP_PKEY_param_check(3).
Sets saner defaults optimized for the use with HTTP-like protocols.
If a Hash
params is given, the parameters are overridden with it. The keys in params must be assignment methods on SSLContext
.
If the verify_mode
is not VERIFY_NONE and ca_file
, ca_path
and cert_store
are not set then the system default certificate store is used.