Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change stars and forks method to accept hash arguments #21

Open
sonalkr132 opened this issue Jan 22, 2017 · 0 comments
Open

Change stars and forks method to accept hash arguments #21

sonalkr132 opened this issue Jan 22, 2017 · 0 comments

Comments

@sonalkr132
Copy link
Member

stars and forks uses default arguments. code would be more readable if it accepted a splat hash argument (*args).
Default values of lo and hi can be set with args.fetch method.

Help: http://stackoverflow.com/questions/3701264/passing-a-hash-to-a-function-args-and-its-meaning

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

No branches or pull requests

1 participant