Skip to content

Commit 8dfbefb

Browse files
committed
Merge branch 'patch-1'
2 parents 551b912 + 8db6906 commit 8dfbefb

File tree

1 file changed

+20
-0
lines changed
  • refm/api/src/json

1 file changed

+20
-0
lines changed

refm/api/src/json/JSON

+20
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,26 @@ proc として手続きオブジェクトが与えられた場合は、読み込
296296
: :symbolize_names
297297
真を指定するとハッシュのキーを文字列ではなくシンボルにします。デフォルトは偽です。
298298

299+
--- load_file(filespec, opts = {}) -> object
300+
301+
filespec で指定した JSON 形式のファイルを Ruby オブジェクトとしてロードして返します。
302+
303+
@param filespec ファイル名を指定します。
304+
305+
@param options オプションをハッシュで指定します。指定可能なオプションは [[m:JSON.#parse]] と同様です。
306+
307+
@see [[m:JSON.#parse]]
308+
309+
--- load_file!(filespec, opts = {}) -> object
310+
311+
filespec で指定した JSON 形式のファイルを Ruby オブジェクトとしてロードして返します。
312+
313+
@param filespec ファイル名を指定します。
314+
315+
@param options オプションをハッシュで指定します。指定可能なオプションは [[m:JSON.#parse!]] と同様です。
316+
317+
@see [[m:JSON.#parse!]]
318+
299319
--- parse(source, options = {}) -> object
300320

301321
与えられた JSON 形式の文字列を Ruby オブジェクトに変換して返します。

0 commit comments

Comments
 (0)