summaryrefslogtreecommitdiff
path: root/lib/xmlrpc/create.rb
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-13 02:22:10 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-13 02:22:10 +0000
commit1df7862b2bf2ba3ebd9d33c6be4882e727fb64f4 (patch)
tree166d2bf4f2a65f3e52c66493222b822fd823c915 /lib/xmlrpc/create.rb
parentd11ef850b21cadc92b8b2bb509c3a329dc70cd43 (diff)
* 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
Diffstat (limited to 'lib/xmlrpc/create.rb')
-rw-r--r--lib/xmlrpc/create.rb21
1 files changed, 9 insertions, 12 deletions
diff --git a/lib/xmlrpc/create.rb b/lib/xmlrpc/create.rb
index 7aa0873590..13c9cd8faa 100644
--- a/lib/xmlrpc/create.rb
+++ b/lib/xmlrpc/create.rb
@@ -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