Flowdock
method

parse_sig

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: BasicInterface
parse_sig(sig) private

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 87
    def parse_sig(sig)
      # sig is a String
      if sig =~ /^\s*(\w+)\s+([^(]+)(\(([^)]*)\))?\s*$/
        params = [$1]
        name   = $2.strip
        $4.split(",").each {|i| params << i.strip} if $4 != nil
        return name, params
      else
        raise "Syntax error in signature"
      end
    end
Register or log in to add new notes.