Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::Config#each
() { ([ ::String, ::String, ::String ] args0) -> void } -> self
config.each { |section, key, value| }
ext/openssl/ossl_config.c
View on GitHub ↗
static VALUE
config_each(VALUE self)
{
CONF *conf = GetConfig(self);
RETURN_ENUMERATOR(self, 0, 0);
lh_doall_arg((_LHASH *)conf->data, LHASH_DOALL_ARG_FN(each_conf_value),
NULL);
return self;
}
Retrieves the section and its pairs for the current configuration.
Example
config.each do |section, key, value| # ... end