るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.058秒)
トップページ > バージョン:2.6.0[x] > クエリ:String[x] > クエリ:hash[x] > モジュール:Marshal[x]

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

ライブラリ

検索結果

Marshal.#dump(obj, limit = -1) -> String (379.0)

obj を指定された出力先に再帰的に出力します。

...フォルト値を求めるブロックを持った Hash は
Proc を間接的に指していることになります。

//emlist[例][ruby]{
p Marshal.dump(Hash.new {})
# => -:1:in `dump': cannot dump hash with default proc (TypeError)
//}

マーシャルの動作を任意に定義することも...
...オブジェクトをダンプしようとした場合に発生します。

@raise ArgumentError limit 段以上深くリンクしたオブジェクトをダンプしようと
した場合に発生します。

@see Object#marshal_dump, Object#marshal_load...

Marshal.#dump(obj, port, limit = -1) -> IO (79.0)

obj を指定された出力先に再帰的に出力します。

...フォルト値を求めるブロックを持った Hash は
Proc を間接的に指していることになります。

//emlist[例][ruby]{
p Marshal.dump(Hash.new {})
# => -:1:in `dump': cannot dump hash with default proc (TypeError)
//}

マーシャルの動作を任意に定義することも...
...オブジェクトをダンプしようとした場合に発生します。

@raise ArgumentError limit 段以上深くリンクしたオブジェクトをダンプしようと
した場合に発生します。

@see Object#marshal_dump, Object#marshal_load...