mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/xmlrpc.rb: Documentation for XMLRPC
* lib/xmlrpc/datetime.rb: ditto. * lib/xmlrpc/parser.rb: ditto. * lib/xmlrpc/client.rb: ditto. * lib/xmlrpc/utils.rb: ditto. * lib/xmlrpc/README.rdoc: ditto. * lib/xmlrpc/create.rb: ditto. * lib/xmlrpc/base64.rb: ditto. * lib/xmlrpc/config.rb: ditto. * lib/xmlrpc/httpserver.rb: ditto. * lib/xmlrpc/server.rb: ditto. * lib/xmlrpc/marshal.rb: ditto. * lib/xmlrpc/README.txt: ditto. [Bug #6909] [ruby-core:47286] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d11ef850b2
commit
1df7862b2b
14 changed files with 1011 additions and 1143 deletions
|
@ -1,6 +1,4 @@
|
|||
#
|
||||
# Creates XML-RPC call/response documents
|
||||
#
|
||||
# Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de)
|
||||
#
|
||||
# $Id$
|
||||
|
@ -9,7 +7,7 @@
|
|||
require "date"
|
||||
require "xmlrpc/base64"
|
||||
|
||||
module XMLRPC
|
||||
module XMLRPC # :nodoc:
|
||||
|
||||
module XMLWriter
|
||||
|
||||
|
@ -100,6 +98,8 @@ module XMLRPC
|
|||
|
||||
end # module XMLWriter
|
||||
|
||||
# Creates XML-RPC call/response documents
|
||||
#
|
||||
class Create
|
||||
|
||||
def initialize(xml_writer = nil)
|
||||
|
@ -132,14 +132,14 @@ module XMLRPC
|
|||
|
||||
|
||||
#
|
||||
# generates a XML-RPC methodResponse document
|
||||
# Generates a XML-RPC methodResponse document
|
||||
#
|
||||
# if is_ret == false then the params array must
|
||||
# When +is_ret+ is +false+ then the +params+ array must
|
||||
# contain only one element, which is a structure
|
||||
# of a fault return-value.
|
||||
#
|
||||
# if is_ret == true then a normal
|
||||
# return-value of all the given params is created.
|
||||
# When +is_ret+ is +true+ then a normal
|
||||
# return-value of all the given +params+ is created.
|
||||
#
|
||||
def methodResponse(is_ret, *params)
|
||||
|
||||
|
@ -167,15 +167,12 @@ module XMLRPC
|
|||
|
||||
|
||||
|
||||
#####################################
|
||||
private
|
||||
#####################################
|
||||
|
||||
#
|
||||
# converts a Ruby object into
|
||||
# a XML-RPC <value> tag
|
||||
# Converts a Ruby object into a XML-RPC <code><value></code> tag
|
||||
#
|
||||
def conv2value(param)
|
||||
def conv2value(param) # :doc:
|
||||
|
||||
val = case param
|
||||
when Fixnum, Bignum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue