Method: OpenSSL::Config.parse
- Defined in:
- lib/openssl/config.rb
.parse(string) ⇒ Object
Parses a given string as a blob that contains configuration for openssl.
If the source of the IO is a file, then consider using #parse_config.
35 36 37 38 39 40 41 |
# File 'lib/openssl/config.rb', line 35 def parse(string) c = new() parse_config(StringIO.new(string)).each do |section, hash| c[section] = hash end c end |