mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/lib/openssl/config.rb: In #parse use +string+ for +str+
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a280ebb60a
commit
75cef5054b
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Nov 13 17:19:36 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
|
* ext/openssl/lib/openssl/config.rb: In #parse use +string+ for +str+
|
||||||
|
|
||||||
Wed Nov 13 17:09:45 2013 Zachary Scott <e@zzak.io>
|
Wed Nov 13 17:09:45 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
* ext/openssl/lib/openssl/*.rb: [DOC] Document the following:
|
* ext/openssl/lib/openssl/*.rb: [DOC] Document the following:
|
||||||
|
|
|
@ -29,12 +29,12 @@ module OpenSSL
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
##
|
##
|
||||||
# Parses a given +str+ as a blob that contains configuration for openssl.
|
# 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.
|
# If the source of the IO is a file, then consider using #parse_config.
|
||||||
def parse(str)
|
def parse(string)
|
||||||
c = new()
|
c = new()
|
||||||
parse_config(StringIO.new(str)).each do |section, hash|
|
parse_config(StringIO.new(string)).each do |section, hash|
|
||||||
c[section] = hash
|
c[section] = hash
|
||||||
end
|
end
|
||||||
c
|
c
|
||||||
|
|
Loading…
Add table
Reference in a new issue