ライブラリ
- ビルトイン (325)
- 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 (22)
-
json
/ add / bigdecimal (11) - openssl (33)
- optparse (11)
- psych (56)
- rake (11)
-
rake
/ testtask (22) - rubygems (55)
-
rubygems
/ commands / build _ command (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ source _ index (22) -
rubygems
/ spec _ fetcher (11) -
rubygems
/ specification (22) -
rubygems
/ version (11) -
shell
/ command-processor (6) -
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httpauth / userdb (11) -
webrick
/ httputils (11)
クラス
- BigDecimal (33)
- Class (11)
- Complex (11)
- Coverage (29)
-
DRb
:: DRbServer (22) -
DRb
:: DRbUnknown (11) - Delegator (11)
-
Gem
:: Commands :: BuildCommand (11) -
Gem
:: LoadError (22) -
Gem
:: Package :: TarInput (11) -
Gem
:: RemoteFetcher (11) -
Gem
:: SourceIndex (22) -
Gem
:: SpecFetcher (11) -
Gem
:: Specification (22) -
Gem
:: Version (11) -
IRB
:: Context (33) -
IRB
:: ExtendCommand :: Load (11) - LoadError (11)
- Module (22)
- Object (44)
-
OpenSSL
:: Engine (22) - 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)
モジュール
- DRb (11)
-
Fiddle
:: Importer (11) -
Gem
:: QuickLoader (22) -
IRB
:: ContextExtender (11) -
IRB
:: ExtendCommandBundle (33) -
IRB
:: HistorySavingAbility (11) - JSON (22)
- Kernel (110)
- Marshal (66)
-
OpenSSL
:: Random (11) - Psych (45)
-
WEBrick
:: HTTPAuth :: UserDB (11) -
WEBrick
:: HTTPUtils (11)
キーワード
-
$ -I (11) -
$ : (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - GemPaths (11)
- GemVersions (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) - Ruby用語集 (11)
-
_ dump (22) -
_ load (33) - autoload (22)
- autoload? (22)
- clone (11)
- debug (11)
-
def
_ extend _ command (22) -
default
_ load _ limit (11) - dlload (11)
- download (11)
- dump (22)
- 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
_ 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
_ random _ file (11) -
load
_ specification (11) -
load
_ specs (11) -
load
_ stream (22) -
loaded
_ from (11) - loader (11)
-
marshal
_ dump (44) -
marshal
_ load (44) - name (11)
- new (11)
- 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 (12) - start (7)
-
start
_ service (11) -
to
_ binary (9) -
use
_ loader (11) -
use
_ loader? (11) -
version
_ requirement (11) - yaml (11)
- セキュリティモデル (11)
- 制御構造 (8)
検索結果
先頭5件
-
Kernel
. # load(file , priv = false) -> true (21343.0) -
Ruby プログラム file をロードして実行します。再ロード可能です。
...
Ruby プログラム file をロードして実行します。再ロード可能です。
file が絶対パスのときは file からロードします。
file が相対パスのときは組み込み変数 $:
に示されるパスとカレントディレクトリを順番に探し、最初に見......数 HOME の値に展開されます。
また `~USER' はそのユーザのホームディレクトリに展開されます。
ロードに成功した場合は true を返します。
@param file ファイル名の文字列です。
@param priv 真のとき、ロード・実行は内部的に生......。
@raise LoadError ロードに失敗した場合に発生します。
@see Kernel.#require
=== require と load の違い
Kernel.#require は同じファイルは一度だけしかロードしませんが、
Kernel.#load は無条件にロードします。
また、require は拡張子.rb や... -
Marshal
. # load(port , proc = nil) -> object (21307.0) -
port からマーシャルデータを読み込んで、元のオブジェクトと同 じ状態をもつオブジェクトを生成します。
...port からマーシャルデータを読み込んで、元のオブジェクトと同
じ状態をもつオブジェクトを生成します。
proc として手続きオブジェクトが与えられた場合には読み込んだ
オブジェクトを引数にその手続きを呼び出します......。
//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, :foo]
//}
@param port String か IO (またはそのサブ......クラス)の
インスタンスを指定します。
@param proc 手続きオブジェクト。Proc
@raise TypeError メジャーバージョンが異なるか、バージョンの大きな
マーシャルデータを読み込んだ場合に発生します。... -
OptionParser
# load(filename = nil) -> bool (21213.0) -
指定された filename を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。
...を読み込んで各行をまとめたものに対して OptionParser#parse を行ないます。
パースが成功した場合に true を返します。
ファイルが存在しなかった場合に false を返します。
@param filename 各行をパースしたいファイルの名前を文......。
//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}
//}... -
JSON
. # load(source , proc = nil , options = {}) -> object (18325.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...を Ruby オブジェクトとしてロードして返します。
proc として手続きオブジェクトが与えられた場合は、読み込んだオブジェクトを
引数にその手続きを呼び出します。
require 'json'
str=<<JSON
[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"=>1, "b"=>2, "c"=>3}
# 以下が表示さ......"c"
# 3
# {"a"=>1, "b"=>2, "c"=>3}
@param source JSON 形式の文字列を指定します。他には、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。
@param proc Proc オブジェクトを指定します。
@param options オプションをハッシュ... -
OpenSSL
:: Engine . load(name = nil) -> true | nil (18301.0) -
Engine をロードします。
...をロードします。以下が指定可能です。
* "dynamic"
* "cswift"
* "chil"
* "atalla"
* "nuron"
* "ubsec"
* "aep"
* "sureware"
* "4758cca"
* "openbsd_dev_crypto"
* "openssl"
引数を省略した場合はロード可能なすべての engine をロードします。......動的な読み込みをしたい場合は OpenSSL::Engine#by_id を
用います。
ロードに成功した場合は true を返します。
@param name ロードする engine の名前(文字列)
@see OpenSSL::Engine.cleanup... -
irb
/ ext / use-loader (18032.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うように設定する機能を提供するサブライブラリです。
...load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うように設定する機能を提供するサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (15323.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
...現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute... -
Gem
:: Version # marshal _ load(array) -> nil (15307.0) -
ダンプされた情報をロードし、自身を破壊的に変更します。
...ダンプされた情報をロードし、自身を破壊的に変更します。
//emlist[][ruby]{
version = Gem::Version.new('')
version.marshal_load(["1.2.0a"])
p version # => #<Gem::Version "1.2.0a">
//}
@param array バージョン情報を含む配列を指定します。... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (15307.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
...
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起......りません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}
@see RubyVM::InstructionSequence#to_binary... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (15307.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary...