Skip to content

Instantly share code, notes, and snippets.

@betawaffle
Created September 7, 2011 00:11
Show Gist options
  • Save betawaffle/1199365 to your computer and use it in GitHub Desktop.
Save betawaffle/1199365 to your computer and use it in GitHub Desktop.
def method_info
required_args = obj.method(m).arity
variable_args = required_args < 0
[variable_args ? -(required_args + 1) : required_args, variable_args]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment