D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
Config
/
Filename :
to_s-i.ri
back
Copy
U:RDoc::AnyMethod[iI" to_s:ETI"OpenSSL::Config#to_s;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"9Gets the parsable form of the current configuration.;To:RDoc::Markup::BlankLine o; ; [I"9Given the following configuration file being loaded:;T@o:RDoc::Markup::Verbatim; [I".config = OpenSSL::Config.load('baz.cnf') ;TI"3 #=> #<OpenSSL::Config sections=["default"]> ;TI"puts config.to_s ;TI" #=> [ default ] ;TI" # foo=bar ;TI" # baz=buz ;T:@format0o; ; [I"IYou can get the serialized configuration using #to_s and then parse ;TI"it later:;T@o;; [ I"%serialized_config = config.to_s ;TI"# much later... ;TI";new_config = OpenSSL::Config.parse(serialized_config) ;TI"3 #=> #<OpenSSL::Config sections=["default"]> ;TI"puts new_config ;TI" #=> [ default ] ;TI" foo=bar ;TI" baz=buz;T; 0: @fileI"ext/openssl/ossl_config.c;T:0@omit_headings_from_table_of_contents_below0I"config.to_s -> string ;T0[ I"();T@(FI"Config;TcRDoc::NormalClass00