Ruby 3.0.0 リファレンスマニュアル > ライブラリ一覧 > jsonライブラリ > JSON::Generator::GeneratorMethods::Integerモジュール

module JSON::Generator::GeneratorMethods::Integer

クラス・モジュールの継承リスト: JSON::Generator::GeneratorMethods::Integer
aliases: JSON::Ext::Generator::GeneratorMethods::Integer

要約

Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。

インスタンスメソッド

定義 説明
to_json(state_or_hash = nil) -> String

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