[ruby/bigdecimal] [DOC] Add section Methods for Working with JSON
https://github.com/ruby/bigdecimal/commit/2edd8d0a23
This commit is contained in:
parent
018dbf18d5
commit
dab5a4b61a
@ -4363,7 +4363,20 @@ BigDecimal_negative_zero(void)
|
|||||||
* (2/3r).to_d(3) # => 0.667e0
|
* (2/3r).to_d(3) # => 0.667e0
|
||||||
* "0.5".to_d # => 0.5e0
|
* "0.5".to_d # => 0.5e0
|
||||||
*
|
*
|
||||||
* == License
|
* == Methods for Working with \JSON
|
||||||
|
*
|
||||||
|
* - {::json_create}[rdoc-ref:BigDecimal.json_create]:
|
||||||
|
* Returns a new \BigDecimal object constructed from the given object.
|
||||||
|
* - {#as_json}[rdoc-ref:BigDecimal#as_json]:
|
||||||
|
* Returns a 2-element hash representing +self+.
|
||||||
|
* - {#to_json}[rdoc-ref:BigDecimal#to_json]:
|
||||||
|
* Returns a \JSON string representing +self+.
|
||||||
|
*
|
||||||
|
* To make these methods available:
|
||||||
|
*
|
||||||
|
* require 'json/add/bigdecimal'
|
||||||
|
*
|
||||||
|
* * == License
|
||||||
*
|
*
|
||||||
* Copyright (C) 2002 by Shigeo Kobayashi <shigeo@tinyforest.gr.jp>.
|
* Copyright (C) 2002 by Shigeo Kobayashi <shigeo@tinyforest.gr.jp>.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user