8000 Add BigDecimal support to xmlrpc by atambo · Pull Request #13 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Add BigDecimal support to xmlrpc #13

New issue
8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add BigDecimal support to xmlrpc
  • Loading branch information
Alex Tambellini committed Apr 21, 2011
commit e09c2059ddacec82519f8996cc42cba5e8c191d4
3 changes: 3 additions & 0 deletions lib/xmlrpc/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def conv2value(param)
when Float
@writer.tag("double", param.to_s)

when BigDecimal
@writer.tag("double", param.to_s("F"))

when Struct
h = param.members.collect do |key|
value = param[key]
Expand Down
0