Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • xmlrpc/utils.rb

XMLRPC::Service::Interface

class which wraps a Service Interface definition, used by XMLRPC::BasicServer#add_handler

Public Class Methods

new(prefix, &p) click to toggle source
 
               # File xmlrpc/utils.rb, line 106
def initialize(prefix, &p)
  raise "No interface specified" if p.nil?
  super(prefix)
  instance_eval(&p)
end
            

Public Instance Methods

get_methods(obj, delim=".") click to toggle source
 
               # File xmlrpc/utils.rb, line 112
def get_methods(obj, delim=".") 
  prefix = @prefix + delim
  @methods.collect { |name, meth, sig, help| 
    [prefix + name, obj.method(meth).to_proc, sig, help] 
  }
end