summaryrefslogtreecommitdiff
path: root/lib/xmlrpc/marshal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xmlrpc/marshal.rb')
-rw-r--r--lib/xmlrpc/marshal.rb18
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
-