1件ヒット
[1-1件を表示]
(0.069秒)
別のキーワード
クラス
- Rational (1)
検索結果
-
Rational
# to _ json(*args) -> String (36364.0) -
自身を JSON 形式の文字列に変換して返します。
...@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json
に渡されます。
//emlist[例][ruby]{
require 'json/add/rational'
Rational(1, 3).to_json # => "{\"json_class\":\"Rational\",\"n\":1,\"d\":3}"
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json...