144件ヒット
[1-100件を表示]
(0.123秒)
ライブラリ
- ビルトイン (12)
- bigdecimal (12)
-
irb
/ ext / use-loader (36) - openssl (12)
- optparse (12)
- rake (24)
- rubygems (36)
クラス
- BigDecimal (12)
-
Gem
:: LoadError (24) -
IRB
:: Context (36) - Module (12)
-
OpenSSL
:: X509 :: ExtensionFactory (12) - OptionParser (12)
-
Rake
:: Application (12) -
Rake
:: DefaultLoader (12)
モジュール
- Kernel (12)
キーワード
-
_ dump (12) -
add
_ loader (12) - autoload (12)
- config= (12)
- gem (12)
-
use
_ loader (12) -
use
_ loader= (12) -
use
_ loader? (12) -
version
_ requirement (12) -
version
_ requirement= (12)
検索結果
先頭5件
-
Rake
:: DefaultLoader # load(filename) (24120.0) -
与えられたファイルをロードします。
...与えられたファイルをロードします。
@param filename ロードするファイル名を指定します。
//emlist[][ruby]{
require 'rake'
loader = Rake::DefaultLoader.new
loader.load("path/to/Rakefile") # => true
//}... -
OptionParser
# load(filename = nil) -> bool (21126.0) -
指定された filename を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。
...name を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。
パースが成功した場合に true を返します。
ファイルが存在しなかった場合に false を返します。
@param filename 各行をパースしたいファイルの名前......options/ に
プログラムのサフィックスを付けた '~/.options/コマンド名' というファイルをパースします。
//emlist[例][ruby]{
require "optparse"
IO.write("options.txt", %w(-a --b).join("\n"))
options = { a: false, b: false }
OptionParser.new do |opt|......opt.on('-a') { |v| options[:a] = v }
opt.on('--b') {|v| options[:b] = v }
opt.load("options.txt") # => true
opt.load("not_exist.txt") # => false
end
p options # => {:a=>true, :b=>true}
//}... -
Gem
:: LoadError # version _ requirement -> Get :: Requirement (15407.0) -
ロードに失敗した Gem の必要条件を返します。
...ロードに失敗した Gem の必要条件を返します。
@see Gem::Requirement, Gem::Dependency#version_requirements... -
Gem
:: LoadError # version _ requirement=(version _ requirement) (15313.0) -
ロードに失敗した Gem の必要条件をセットします。
...ロードに失敗した Gem の必要条件をセットします。
@param version_requirement Gem::Requirement のインスタンスをセットします。
@see Gem::Requirement, Gem::Dependency#version_requirements... -
Module
# autoload(const _ name , feature) -> nil (12241.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
...const_name を最初に参照した時に feature を Kernel.#require するように設定します。
const_name が autoload 設定されていて、まだ定義されてない(ロードされていない)ときは、
autoload する対象を置き換えます。
const_name が(autoloadでは......ません。
@param const_name String または Symbol で指定します。
なお、const_name には、"::" 演算子を含めることはできません。
つまり、self の直下に定義された定数しか指定できません。
@param feature Kernel.#require と同様な......方法で autoload する対象を指定する。
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
class Bar
end
end
# ----- end of /tmp/foo.rb ----
class Foo
autoload :Bar, '/tmp/foo'
end
p Foo::Bar #=> Foo::Bar
//}
以下のようにモジュールを明示的にレシーバ... -
Rake
:: Application # add _ loader(ext , loader) (9325.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
...す。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sa......mple.mf", makefile)
Rake.application.add_loader("mf", Rake::MakefileLoader.new)
Rake.application.add_import("sample.mf")
Rake::Task.task_defined?("a") # => false
Rake.application.load_imports
Rake::Task.task_defined?("a") # => true
//}... -
IRB
:: Context # use _ loader=(opt) (9271.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを設定します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを設定します。
.irbrc ファイル中で IRB.conf[:USE_LOADER] を設定する事でも同様の事が行
えます。
デフォルト値は false です。
@see IRB::Context#......use_loader?... -
IRB
:: Context # use _ loader -> bool (9171.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
IRB
:: Context # use _ loader? -> bool (9171.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=...