diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-13 02:22:10 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-13 02:22:10 +0000 |
commit | 1df7862b2bf2ba3ebd9d33c6be4882e727fb64f4 (patch) | |
tree | 166d2bf4f2a65f3e52c66493222b822fd823c915 /lib/xmlrpc/marshal.rb | |
parent | d11ef850b21cadc92b8b2bb509c3a329dc70cd43 (diff) | |
download | ruby-1df7862b2bf2ba3ebd9d33c6be4882e727fb64f4.tar.gz |
* 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/marshal.rb')
-rw-r--r-- | lib/xmlrpc/marshal.rb | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/lib/xmlrpc/marshal.rb b/lib/xmlrpc/marshal.rb index d121828312..ef1234f801 100644 --- a/lib/xmlrpc/marshal.rb +++ b/lib/xmlrpc/marshal.rb @@ -1,6 +1,4 @@ # -# Marshalling of XML-RPC methodCall and methodResponse -# # Copyright (C) 2001, 2002, 2003 by Michael Neumann (mneumann@ntecs.de) # # $Id$ @@ -11,13 +9,12 @@ require "xmlrpc/create" require "xmlrpc/config" require "xmlrpc/utils" -module XMLRPC +module XMLRPC # :nodoc: + # Marshalling of XMLRPC::Create#methodCall and XMLRPC::Create#methodResponse class Marshal include ParserWriterChooseMixin - # class methods ------------------------------- - class << self def dump_call( methodName, *params ) @@ -41,8 +38,6 @@ module XMLRPC end # class self - # instance methods ---------------------------- - def initialize( parser = nil, writer = nil ) set_parser( parser ) set_writer( writer ) @@ -56,16 +51,12 @@ module XMLRPC create.methodResponse( ! param.kind_of?( XMLRPC::FaultException ) , param ) end - ## - # returns [ methodname, params ] - # + # Returns <code>[ methodname, params ]</code> def load_call( stringOrReadable ) parser.parseMethodCall( stringOrReadable ) end - ## - # returns paramOrFault - # + # Returns +paramOrFault+ def load_response( stringOrReadable ) parser.parseMethodResponse( stringOrReadable )[1] end @@ -73,4 +64,3 @@ module XMLRPC end # class Marshal end - |