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.
37 38 39 40 41 42 43 |
# File 'lib/openssl/config.rb', line 37 def parse(string) c = new() parse_config(StringIO.new(string)).each do |section, hash| c.set_section(section, hash) end c end |