Flowdock
method

add_method

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: BasicInterface
add_method(sig, help=nil, meth_name=nil) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/xmlrpc/utils.rb, line 71
    def add_method(sig, help=nil, meth_name=nil)
      mname = nil
      sig = [sig] if sig.kind_of? String

      sig = sig.collect do |s|
        name, si = parse_sig(s)
        raise "Wrong signatures!" if mname != nil and name != mname
        mname = name
        si
      end

      @methods << [mname, meth_name || mname, sig, help]
    end
Register or log in to add new notes.