るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.180秒)
トップページ > クエリ:to_io[x] > クエリ:restore[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

モジュール

検索結果

JSON.#restore(source, proc = nil, options = {}) -> object (15107.0)

与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。

...# "a"
# 1
# "b"
# 2
# "c"
# 3
# {"a"=>1, "b"=>2, "c"=>3}

@param source JSON 形式の文字列を指定します。他には、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。

@param proc Proc オブジェクトを指定します。

@param options...

JSON.#load(source, proc = nil, options = {}) -> object (7.0)

与えられた JSON 形式の文字列を Ruby オブジェクトとしてロードして返します。

...# "a"
# 1
# "b"
# 2
# "c"
# 3
# {"a"=>1, "b"=>2, "c"=>3}

@param source JSON 形式の文字列を指定します。他には、to_str, to_io, read メソッドを持つオブジェクトも指定可能です。

@param proc Proc オブジェクトを指定します。

@param options...