180件ヒット
[101-180件を表示]
(0.099秒)
別のキーワード
ライブラリ
- ビルトイン (24)
- bigdecimal (12)
-
irb
/ ext / use-loader (36) - openssl (24)
- optparse (12)
- rake (24)
-
rake
/ loaders / makefile (12) - rubygems (36)
クラス
- BigDecimal (12)
-
Gem
:: LoadError (24) -
IRB
:: Context (36) - LoadError (12)
- Module (12)
-
OpenSSL
:: Config (12) -
OpenSSL
:: X509 :: ExtensionFactory (12) - OptionParser (12)
-
Rake
:: Application (12) -
Rake
:: DefaultLoader (12) -
Rake
:: MakefileLoader (12)
モジュール
- Kernel (12)
キーワード
-
_ dump (12) -
add
_ loader (12) - autoload (12)
- config= (12)
- each (12)
- gem (12)
- path (12)
-
use
_ loader (12) -
use
_ loader= (12) -
use
_ loader? (12) -
version
_ requirement (12) -
version
_ requirement= (12)
検索結果
先頭5件
-
IRB
:: Context # use _ loader? -> bool (6165.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
Module
# autoload(const _ name , feature) -> nil (6123.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
...照した時に feature を Kernel.#require するように設定します。
const_name が autoload 設定されていて、まだ定義されてない(ロードされていない)ときは、
autoload する対象を置き換えます。
const_name が(autoloadではなく)既に定義されて......定できません。
@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....../tmp/foo.rb ---------
class Foo
class Bar
end
end
# ----- end of /tmp/foo.rb ----
class Foo
end
Foo.autoload :Bar, '/tmp/foo'
p Foo::Bar #=> Foo::Bar
//}
以下のように、autoload したライブラリがネストした定数を定義しない場
合、NameError が発生します。
//e... -
LoadError
# path -> String | nil (3039.0) -
Kernel.#require や Kernel.#load に失敗したパスを返します。
...Kernel.#require や Kernel.#load に失敗したパスを返します。
begin
require 'this/file/does/not/exist'
rescue LoadError => e
e.path # => 'this/file/does/not/exist'
end
パスが定まらない場合は nil を返します。... -
Kernel
# gem(gem _ name , *version _ requirements) -> bool (123.0) -
$LOAD_PATH に Ruby Gem を追加します。
...$LOAD_PATH に Ruby Gem を追加します。
指定された Gem をロードする前にその Gem が必要とする Gem をロードします。
バージョン情報を省略した場合は、最も高いバージョンの Gem をロードします。
指定された Gem やその Gem が必......った場合は
Gem::LoadError が発生します。
バージョンの指定方法に関しては Gem::Version を参照してください。
rubygems ライブラリがライブラリバージョンの衝突を検出しない限り、
gem メソッドは全ての require メソッドよりも前......スで指定します。
@param version_requirements 必要とする gem のバージョンを指定します。
@return Gem がロードできた場合は true を返します。ロードできなかった場合は false を返します。
@raise Gem::LoadError 指定された Gem やその Gem... -
BigDecimal
# _ dump -> String (41.0) -
BigDecimal._load で復元可能な文字列を返します。 Marshal.#dump から呼び出されます。
...BigDecimal._load で復元可能な文字列を返します。
Marshal.#dump から呼び出されます。
//emlist[][ruby]{
require 'bigdecimal'
inf = BigDecimal('Infinity') # => Infinity
s = Marshal.dump(inf) # => "\x04\bu:\x0FBigDecimal\x0F9:Infinity"
Marshal.load(s) # => I......nfinity
//}
@see BigDecimal._load, Marshal.#dump, Marshal.#load... -
OpenSSL
:: Config # each {|section , key , value| . . . } -> self (13.0) -
オブジェクトに含まれる全ての設定情報を順にブロックに渡し 呼び出します。
...クションを表す文字列、キーを表す文字列、キーに
割り当てられた値の文字列、の3つです。
require 'openssl'
conf = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
conf.each{|section, key, value| p [section, key, value]}
# => ["req_distinguished... -
OpenSSL
:: X509 :: ExtensionFactory # config=(config) (13.0) -
自身にコンフィグファイルオブジェクトを設定します。
...自身にコンフィグファイルオブジェクトを設定します。
例
require 'openssl'
factory.config = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
@param config 設定ファイル(OpenSSL::Config オブジェクト)...