Skip to content

Commit

Permalink
Merge pull request #275 from BurdetteLamar/json_doc
Browse files Browse the repository at this point in the history
[DOC] Add section Methods for Working with JSON
  • Loading branch information
peterzhu2118 authored Dec 6, 2023
2 parents eeccedf + 2edd8d0 commit 6e9c24b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ext/bigdecimal/bigdecimal.c
Original file line number Diff line number Diff line change
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}[https://docs.ruby-lang.org/en/master/BigDecimal.html#method-c-json_create]:
* Returns a new \BigDecimal object constructed from the given object.
* - {#as_json}[https://docs.ruby-lang.org/en/master/BigDecimal.html#method-i-as_json]:
* Returns a 2-element hash representing +self+.
* - {#to_json}[https://docs.ruby-lang.org/en/master/BigDecimal.html#method-i-to_json]:
* Returns a \JSON string representing +self+.
*
* To make these methods available:
*
* require 'json/add/bigdecimal'
*
* * == License
*
* Copyright (C) 2002 by Shigeo Kobayashi <[email protected]>.
*
Expand Down

0 comments on commit 6e9c24b

Please sign in to comment.