るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.037秒)
トップページ > バージョン:2.3.0[x] > クエリ:IO[x] > クエリ:v[x] > クエリ:load[x] > 種類:インスタンスメソッド[x] > ライブラリ:openssl[x] > クラス:OpenSSL::Config[x]

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io readlines
  5. io each_line

検索結果

OpenSSL::Config#each {|section, key, value| ... } -> self (631.0)

オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。

...表す文字列、キーを表す文字列、キーに
割り当てられた値の文字列、の3つです。

require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished_name", "countr...