120件ヒット
[1-100件を表示]
(0.127秒)
ライブラリ
- ビルトイン (48)
- delegate (12)
-
irb
/ ext / use-loader (48) - rake (12)
クラス
- Class (12)
- Delegator (12)
-
IRB
:: Context (36) - Object (36)
-
Rake
:: Application (12)
モジュール
キーワード
-
_ dump (12) -
add
_ loader (12) -
irb
_ load (12) -
marshal
_ dump (12) -
marshal
_ load (24) -
use
_ loader (12) -
use
_ loader= (12) -
use
_ loader? (12)
検索結果
先頭5件
-
Class
# _ load(str) -> Class (18208.0) -
Object#_dump を参照して下さい。
...Object#_dump を参照して下さい。
@param str Ruby のオブジェクトがダンプされた文字列を指定します。... -
Object
# marshal _ load(obj) -> object (9250.0) -
Marshal.#load を制御するメソッドです。
...marshal_load を持っていなければなりません。
このとき、marshal_dump の返り値が marshal_load の引数に利用されます。
marshal_load 時の self は、生成されたばかり(Class#allocate されたばかり) の状態です。
marshal_dump/marshal_load の仕......Ruby 1.8.0 から導入されました。
これから書くプログラムでは _dump/_load ではなく
marshal_dump/marshal_load を使うべきです。
@param obj marshal_dump の返り値のコピーです。
@return 返り値は無視されます。
@see Object#marshal_dump, Marshal... -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (9224.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
...現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute... -
IRB
:: Context # use _ loader=(opt) (9223.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを設定します。
...は require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを設定します。
.irbrc ファイル中で IRB.conf[:USE_LOADER] を設定する事でも同様の事が行
えます。
デフォルト値は false です。
@see IRB::Context#use_loader?... -
Rake
:: Application # add _ loader(ext , loader) (9213.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
//}... -
Delegator
# marshal _ load(obj) -> object (9208.0) -
シリアライズされたオブジェクトから、Delegator#__getobj__ が返すオブジェクトを再現します。
...シリアライズされたオブジェクトから、Delegator#__getobj__ が返すオブジェクトを再現します。
@param obj Delegator#marshal_dumpの戻り値のコピー... -
IRB
:: Context # use _ loader -> bool (9123.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 (9123.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
...load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader=... -
Object
# marshal _ dump -> object (3203.0) -
Marshal.#dump を制御するメソッドです。
...dump/marshal_load の仕組みは Ruby 1.8.0 から導入されました。
これから書くプログラムでは _dump/_load ではなく
marshal_dump/marshal_load を使うべきです。
@return 任意のオブジェクトで marshal_load の引数に利用できます。
//emlist[][ruby]{
cl......ass Foo
def initialize(arg)
@foo = arg
end
def marshal_dump
@foo
end
def marshal_load(obj)
p obj
@foo = obj
end
end
foo = Foo.new(['foo', 'bar'])
p foo #=> #<Foo:0xbaf3b0 @foo=["foo", "bar"]>
dms = Marshal.dump(foo)
p dms #=> "\00......4\bU:\bFoo[\a\"\bfoo\"\bbar"
result = Marshal.load(dms) #=> ["foo", "bar"] # marshal_load の引数
p result #=> #<Foo:0xbaf2ac @foo=["foo", "bar"]>
//}
インスタンス変数の情報は普通マーシャルデータに含まれるので、
上例のように marshal_dump を...