D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
Config
/
Filename :
get_value-i.ri
back
Copy
U:RDoc::AnyMethod[iI"get_value:ETI"OpenSSL::Config#get_value;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"6Gets the value of _key_ from the given _section_.;To:RDoc::Markup::BlankLine o; ; [I"9Given the following configurating file being loaded:;T@o:RDoc::Markup::Verbatim; [ I".config = OpenSSL::Config.load('foo.cnf') ;TI"3 #=> #<OpenSSL::Config sections=["default"]> ;TI"puts config.to_s ;TI" #=> [ default ] ;TI" # foo=bar ;T:@format0o; ; [I"LYou can get a specific value from the config if you know the _section_ ;TI"and _key_ like so:;T@o;; [I"'config.get_value('default','foo') ;TI" #=> "bar";T; 0: @fileI"ext/openssl/ossl_config.c;T:0@omit_headings_from_table_of_contents_below0I".config.get_value(section, key) -> string ;T0[ I" (p1, p2);T@!FI"Config;TcRDoc::NormalClass00