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

Integer would benefit from #buzz?, #fizzbuzz? and #fizz? #2

Closed
bil-bas opened this issue Sep 27, 2012 · 4 comments
Closed

Integer would benefit from #buzz?, #fizzbuzz? and #fizz? #2

bil-bas opened this issue Sep 27, 2012 · 4 comments

Comments

@bil-bas
Copy link

bil-bas commented Sep 27, 2012

No description provided.

@kwilczynski
Copy link
Owner

I am not sure whether monkey-patching Integer would be a good idea. What about providing singleton methods, for instance: FizzBuzz#is_buzz?, etc.

@bil-bas
Copy link
Author

bil-bas commented Sep 27, 2012

I disagree! Fizzbuzz is a fundamental software engineering concept and really, I don't quite understand why Matz left Integer#fizzbuzz? out of core Ruby. I will use it in about 72% of my current projects.

@kwilczynski
Copy link
Owner

Haha :)

@kwilczynski
Copy link
Owner

I have added this in 5267559. Thanks for feedback!

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

No branches or pull requests

2 participants