るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.044秒)
トップページ > クエリ:-[x] > クエリ:on[x] > ライブラリ:json/add/ostruct[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

クラス

キーワード

検索結果

OpenStruct#to_json(*args) -> String (6202.0)

自身を JSON 形式の文字列に変換して返します。

...身を JSON 形式の文字列に変換して返します。

内部的にはハッシュにデータをセットしてから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。

@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡され...
...ます。

@see JSON::Generator::GeneratorMethods::Hash#to_json...

OpenStruct.json_create(hash) -> OpenStruct (6202.0)

JSON のオブジェクトから OpenStruct のオブジェクトを生成して返します。

...JSON のオブジェクトから OpenStruct のオブジェクトを生成して返します。

@param hash OpenStruct.new に指定可能な値をキー 't' もしくは :t に持つハッシュを指定します。...