In Files

  • xmlrpc/utils.rb

XMLRPC::ParserWriterChooseMixin

Defines ParserWriterChooseMixin, which makes it possible to choose a different XMLWriter and/or XMLParser then the default one.

The Mixin is used in client.rb (class XMLRPC::Client) and server.rb (class XMLRPC::BasicServer)

Public Instance Methods

set_parser(parser) click to toggle source

Sets the XMLParser to use for parsing XML documents.

Should be an instance of a class from module XMLRPC::XMLParser.

If this method is not called, then XMLRPC::Config::DEFAULT_PARSER is used.

 
               # File xmlrpc/utils.rb, line 40
def set_parser(parser)
  @parser = parser
  self
end
            
set_writer(writer) click to toggle source

Sets the XMLWriter to use for generating XML output.

Should be an instance of a class from module XMLRPC::XMLWriter.

If this method is not called, then XMLRPC::Config::DEFAULT_WRITER is used.

 
               # File xmlrpc/utils.rb, line 30
def set_writer(writer)
  @create = Create.new(writer)
  self
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.