60件ヒット
[1-60件を表示]
(0.038秒)
別のキーワード
キーワード
- load (24)
-
rubygems
/ commands / pristine _ command (12)
検索結果
先頭5件
-
rubygems
/ commands / pristine _ command (26012.0) -
インストールされている Gem パッケージを初期状態にするためのライブラリです。
...クトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME gem to restore to pristine condition (unless --all)
Summary:
Restores installed gems to pristine condition from files l......cated in the gem
cache
Description:
The pristine command compares the installed gems with the contents of the
cached gem and restores any files that don't match the cached gem's copy.
If you have made modifications to your installed gems, the pristine command... -
JSON
. # restore(source , proc = nil , options = {}) -> object (15117.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
proc として手続きオブジェクトが与えられた場合は、読み込んだオブジェクトを
引数にその手続きを呼び出します。
require 'json'
str=<<JSON... -
Marshal
. # restore(port , proc = nil) -> object (15107.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
#... -
JSON
. # load(source , proc = nil , options = {}) -> object (17.0) -
与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
...与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。
proc として手続きオブジェクトが与えられた場合は、読み込んだオブジェクトを
引数にその手続きを呼び出します。
require 'json'
str=<<JSON... -
Marshal
. # load(port , proc = nil) -> object (7.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
#...