private Method

BasicServer.check_arity(obj, n_args)

returns true, if the arity of "obj" matches

Source Code

# File xmlrpc/server.rb, line 352
def check_arity(obj, n_args)
  ary = obj.arity

  if ary >= 0
    n_args == ary
  else
    n_args >= (ary+1).abs 
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.