diff options
author | Yuki Morohoshi <[email protected]> | 2024-10-10 16:04:23 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-10-31 08:26:12 +0000 |
commit | 9d94a3b8aa5697586cade5d39ec0fc5c352daf64 (patch) | |
tree | b6d3692d73f63be13a72941798fca16dfe690780 | |
parent | 87fb44dff6409a19d12052cf0fc07ba80a4c45ac (diff) |
[ruby/openssl] [DOC] Replace removed method in example for OpenSSL::Config#to_s
https://github.com/ruby/openssl/commit/93c7bf52ac
-rw-r--r-- | ext/openssl/ossl_config.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c index 55875028b2..a47e0815d1 100644 --- a/ext/openssl/ossl_config.c +++ b/ext/openssl/ossl_config.c @@ -305,18 +305,16 @@ static IMPLEMENT_LHASH_DOALL_ARG_FN(dump_conf_value, CONF_VALUE, VALUE) * * Gets the parsable form of the current configuration. * - * Given the following configuration being created: + * Given the following configurating file being loaded: * - * config = OpenSSL::Config.new - * #=> #<OpenSSL::Config sections=[]> - * config['default'] = {"foo"=>"bar","baz"=>"buz"} - * #=> {"foo"=>"bar", "baz"=>"buz"} + * config = OpenSSL::Config.load('baz.cnf') + * #=> #<OpenSSL::Config sections=["default"]> * puts config.to_s * #=> [ default ] * # foo=bar * # baz=buz * - * You can parse get the serialized configuration using #to_s and then parse + * You can get the serialized configuration using #to_s and then parse * it later: * * serialized_config = config.to_s |