るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.094秒)

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file open
  4. file chmod
  5. file path

ライブラリ

キーワード

検索結果

Rake::MakefileLoader#load(filename) (24214.0)

与えられた Makefile をロードします。

...与えられた Makefile をロードします。

@param filename 読み込む Makefile の名前を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする
require "rake/loaders/makefile"

task default: :test_rake_app

open
"sample.mf", "w" do |io|
io << <<-'SAMPLE_MF'
# Commen...
...a6 a7
c: c1
d: d1 d2 \
e f : e1 f1
g\ 0: g1 g\ 2 g\ 3 g4
SAMPLE_MF
end

task :test_rake_app do |task|
load
er = Rake::MakefileLoader.new
load
er.load("sample.mf")
p Rake::Task.task_defined?("a") # => true
p Rake::Task.tasks[0] # => <Rake::FileTask a => [a1, a2, a3, a4, a5, a6, a7]>
end
//}...

OpenSSL::Config#each {|section, key, value| ... } -> self (3013.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", "countryName", "Cou...

OpenSSL::X509::ExtensionFactory#config=(config) (3013.0)

自身にコンフィグファイルオブジェクトを設定します。

...自身にコンフィグファイルオブジェクトを設定します。


require 'openssl'
factory.config = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)

@param config 設定ファイル(OpenSSL::Config オブジェクト)...