Skip to content

Commit

Permalink
[ruby/bigdecimal] [DOC] Add section Methods for Working with JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdetteLamar authored and matzbot committed Dec 6, 2023
1 parent 018dbf1 commit dab5a4b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ext/bigdecimal/bigdecimal.c
Expand Up @@ -4363,7 +4363,20 @@ BigDecimal_negative_zero(void)
* (2/3r).to_d(3) # => 0.667e0
* "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>.
*
Expand Down

0 comments on commit dab5a4b

Please sign in to comment.