るりまサーチ

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

別のキーワード

  1. struct new
  2. mkmf have_struct_member
  3. struct []
  4. struct each
  5. struct select

クラス

キーワード

検索結果

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

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

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

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

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

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

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

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

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

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