るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.141秒)
トップページ > 種類:インスタンスメソッド[x] > クエリ:i[x] > クエリ:string[x] > モジュール:JSON::Generator::GeneratorMethods::Integer[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

ライブラリ

検索結果

JSON::Generator::GeneratorMethods::Integer#to_json(state_or_hash = nil) -> String (3203.0)

自身から生成した JSON 形式の文字列を返します。

...する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。

//emlist[例][ruby]{
require "json"

10.to_json # => "10"
//}...