1346件ヒット
[1-100件を表示]
(0.088秒)
種類
ライブラリ
- ビルトイン (358)
- bigdecimal (22)
- coverage (29)
- delegate (11)
- drb (44)
-
fiddle
/ import (11) -
irb
/ cmd / load (11) -
irb
/ context (11) -
irb
/ ext / save-history (11) -
irb
/ ext / use-loader (33) -
irb
/ extend-command (33) - json (33)
-
json
/ add / bigdecimal (11) - openssl (110)
- optparse (11)
- psych (113)
- rake (11)
-
rake
/ testtask (22) - rubygems (55)
-
rubygems
/ commands / build _ command (11) -
rubygems
/ config _ file (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ source _ index (22) -
rubygems
/ spec _ fetcher (11) -
rubygems
/ specification (44) -
rubygems
/ version (11) -
shell
/ command-processor (6) -
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httpauth / userdb (11) -
webrick
/ httputils (11) - win32ole (11)
クラス
- BigDecimal (33)
- Class (11)
- Complex (11)
- Coverage (29)
-
DRb
:: DRbServer (22) -
DRb
:: DRbUnknown (11) - Delegator (11)
-
Gem
:: Commands :: BuildCommand (11) -
Gem
:: ConfigFile (11) -
Gem
:: LoadError (22) -
Gem
:: Package :: TarInput (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: SourceIndex (22) -
Gem
:: SpecFetcher (11) -
Gem
:: Specification (44) -
Gem
:: Version (11) -
IRB
:: Context (33) -
IRB
:: ExtendCommand :: Load (11) - LoadError (11)
- Module (22)
- Object (77)
-
OpenSSL
:: Config (33) -
OpenSSL
:: Engine (66) - OptionParser (11)
-
Psych
:: SyntaxError (11) -
Rake
:: Application (11) -
Rake
:: TestTask (22) - Random (22)
- Rational (11)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (27) -
Shell
:: CommandProcessor (6) -
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) - WIN32OLE (11)
モジュール
- DRb (11)
-
Fiddle
:: Importer (11) -
Gem
:: QuickLoader (22) -
IRB
:: ContextExtender (11) -
IRB
:: ExtendCommandBundle (33) -
IRB
:: HistorySavingAbility (11) - JSON (33)
- Kernel (110)
- Marshal (66)
-
OpenSSL
:: Random (11) - Psych (80)
-
WEBrick
:: HTTPAuth :: UserDB (11) -
WEBrick
:: HTTPUtils (11)
キーワード
-
$ -I (11) -
$ : (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - DATA (11)
- GemPaths (11)
- GemVersions (11)
-
JSON
_ LOADED (11) -
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Nodes (11)
- Ruby用語集 (11)
- Time (11)
-
_ dump (22) -
_ load (33) - autoload (22)
- autoload? (22)
-
by
_ id (11) - cleanup (11)
- clone (11)
-
const
_ load (11) - debug (11)
-
def
_ extend _ command (22) -
default
_ load _ limit (11) - dlload (11)
- download (11)
- dump (22)
- dup (11)
- each (11)
- engines (11)
- execute (11)
- file (11)
- gem (11)
-
get
_ passwd (33) -
install
_ extend _ commands (11) - irb (11)
-
irb
/ ext / loader (11) -
irb
/ ext / use-loader (11) -
irb
_ load (11) -
json
_ create (11) - libs (11)
-
load
_ documents (8) -
load
_ file (22) -
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) -
load
_ gems _ in (11) -
load
_ gemspec (11) -
load
_ gemspecs (11) -
load
_ history (11) -
load
_ mime _ types (11) -
load
_ modules (11) -
load
_ private _ key (11) -
load
_ public _ key (11) -
load
_ random _ file (11) -
load
_ specification (11) -
load
_ specs (11) -
load
_ stream (22) - loaded? (11)
-
loaded
_ from (11) - loader (11)
-
marshal
_ dump (44) -
marshal
_ load (44) - name (11)
- new (22)
- parse (11)
- path (11)
-
peek
_ result (11) -
rb
_ jump _ tag (11) -
rb
_ load (11) - reload (11)
- require (11)
-
require
_ relative (11) -
resolve
_ feature _ path (1) - restore (22)
- result (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / lock _ command (11) -
run
_ config (6) -
safe
_ load (17) - start (7)
-
start
_ service (11) -
test
/ unit (1) -
to
_ binary (9) -
use
_ loader (11) -
use
_ loader? (11) -
version
_ requirement (11) - yaml (11)
-
yaml
_ tag (11) - セキュリティモデル (11)
- 制御構造 (8)
検索結果
先頭5件
-
Kernel
. # load(file , priv = false) -> true (18243.0) -
Ruby プログラム file をロードして実行します。再ロード可能です。
...名前空間を汚染しません。
@raise LoadError ロードに失敗した場合に発生します。
@see Kernel.#require
=== require と load の違い
Kernel.#require は同じファイルは一度だけしかロードしませんが、
Kernel.#load は無条件にロードします。
ま.......so を自動的に補完しますが、
load は行いません。
require はライブラリのロード、load は
設定ファイルの読み込みなどに使うのが典型的な用途です。
//emlist[例][ruby]{
load "#{ENV['HOME']}/.myapprc"
load "/etc/myapprc"
//}
なお、特定のデ......ィレクトリからファイルをロードしたい場合、
load 'filename' とするのは不適切です。必ず絶対パスを
使ってください。... -
Psych
. load(yaml , filename = nil , fallback: false , symbolize _ names: false) -> object (18243.0) -
YAML ドキュメントを Ruby のデータ構造(オブジェクト)に変換します。
...エラーが発見されたときに発生します
@see Psych.parse
//emlist[例][ruby]{
Psych.load("--- a") # => 'a'
Psych.load("---\n - a\n - b") # => ['a', 'b']
begin
Psych.load("--- `", "file.txt")
rescue Psych::SyntaxError => ex
p ex.file # => 'file.txt'
p ex.message # =>......ード引数 symbolize_names に true を指定した場合はハッシュのキー
を Symbol に変換して返します。
//emlist[例][ruby]{
Psych.load("---\n foo: bar") # => {"foo"=>"bar"}
Psych.load("---\n foo: bar", symbolize_names: true) # => {:foo=>"bar"}
//}... -
Psych
. load(yaml , filename = nil , fallback = false) -> object (18231.0) -
YAML ドキュメントを Ruby のデータ構造(オブジェクト)に変換します。
...エラーが発見されたときに発生します
@see Psych.parse
//emlist[例][ruby]{
Psych.load("--- a") # => 'a'
Psych.load("---\n - a\n - b") # => ['a', 'b']
begin
Psych.load("--- `", "file.txt")
rescue Psych::SyntaxError => ex
p ex.file # => 'file.txt'
p ex.message # =>... -
JSON
. # load(source , proc = nil , options = {}) -> object (18225.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...SON
[1,2,3]
JSON
JSON.load(str) # => [1,2,3]
JSON.load(str, proc{|v| p v }) # => [1,2,3]
# 以下が表示される
# 1
# 2
# 3
# [1,2,3]
str=<<JSON
{ "a":1, "b":2, "c":3 }
JSON
JSON.load(str) # => {"a"=>1, "b"=>2, "c"=>3}
JSON.load(str, proc{|v| p v }) # => {"a"... -
OptionParser
# load(filename = nil) -> bool (18213.0) -
指定された filename を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。
...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 # =... -
Marshal
. # load(port , proc = nil) -> object (18207.0) -
port からマーシャルデータを読み込んで、元のオブジェクトと同 じ状態をもつオブジェクトを生成します。
...ジェクトを引数にその手続きを呼び出します。
//emlist[例][ruby]{
str = Marshal.dump(["a", 1, 10 ** 10, 1.0, :foo])
p Marshal.load(str, proc {|obj| p obj})
# => "a"
# 1
# 10000000000
# 1.0
# :foo
# ["a", 1, 10000000000, 1.0, :foo]
# ["a", 1, 10000000000, 1.0, :... -
Gem
:: Specification . load(filename) -> Gem :: Specification (18201.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename gemspec のファイル名を指定します。
@raise StandardError gemspec ファイル内でこのメソッドを呼んでいる場合に発生します。 -
OpenSSL
:: Config . load(filename = nil) -> OpenSSL :: Config (18201.0) -
OpenSSL::Config オブジェクトを生成します。
OpenSSL::Config オブジェクトを生成します。
filename で指定したファイルから設定データを読みこみます。
filename を省略した場合は空のオブジェクトが生成されます。
@param filename ファイル名文字列
@raise OpenSSL::ConfigError 設定ファイルの文法が正しくない場合に発生します -
OpenSSL
:: Engine . load(name = nil) -> true | nil (18201.0) -
Engine をロードします。
Engine をロードします。
このメソッドは openssl のコンパイル時に静的に
コンパイルされたものを読み込みます。
name で指定した engine をロードします。以下が指定可能です。
* "dynamic"
* "cswift"
* "chil"
* "atalla"
* "nuron"
* "ubsec"
* "aep"
* "sureware"
* "4758cca"
* "openbsd_dev_crypto"
* "openssl"
引数を省略した場合はロード可能なすべての engine をロードします。
動的な読み込み... -
irb
/ ext / use-loader (12032.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うように設定する機能を提供するサブライブラリです。
...load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うように設定する機能を提供するサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。... -
Kernel
$ $ LOAD _ PATH -> [String] (6267.0) -
Rubyライブラリをロードするときの検索パスです。
...をロードするときの検索パスです。
Kernel.#load や Kernel.#require
がファイルをロードする時に検索するディレクトリのリストを含む配列です。
起動時にはコマンドラインオプション -I で指定したディレクトリ、
環境変数 RUBYL......指定したデフォルト値
をこの順番で含みます。
以下に典型的な UNIX システム上でのロードパスを示します。
-I で指定したパス
環境変数 RUBYLIB の値
/usr/local/lib/ruby/site_ruby/VERSION サイト固有、バージョン依存のラ......のバージョンを表す文字列で、
「1.6」や「1.8」です。
ARCH はハードウェアと OS を表す文字列で、
「i686-linux」や「alpha-osf5.1」などです。
ARCH の値は Config::CONFIG['arch'] で得られます。
コンパイル時のデフォルトパスは
多く...