Skip to content

Instantly share code, notes, and snippets.

@jrwren
Forked from trek/gist:638615
Created October 21, 2010 15:02
Show Gist options
  • Save jrwren/638625 to your computer and use it in GitHub Desktop.
Save jrwren/638625 to your computer and use it in GitHub Desktop.
def some_method(a, b, c=5, *p, q)
if (q) c=7
other_method(a,b,c,p,q)
end
def other_method(a, b, c=4, *p, q)
end
@jrwren
Copy link
Author

jrwren commented Oct 21, 2010

something(a,b,c)

@jrwren
Copy link
Author

jrwren commented Oct 21, 2010

a,b,c as passed isn't an object. at least this is what I've heard. I'm still ruby noob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment