bendyworks / bendygem

A veritable cornucopia overflowing with code
MIT License
0 stars 1 forks source link

Further modularization? #2

Open listrophy opened 9 years ago

listrophy commented 9 years ago

If you look at the object.rb code, it adds #try to Object and NilClass. That's all well and good, but what if we want to add another method to Object, like in? as shown in https://github.com/listrophy/gists/blob/master/lib/gists.rb#L18 ? It feels like the #try functionality should be in a module like Bendy::Try rather than simply Bendy so that we can select bits to pull in rather than just get the whole thing.

Thoughts?

twopoint718 commented 9 years ago

Sure? Send a PR with what you're talking about. I guess my MO was to be rather "fire and forget" (import 'bendy' and that's it) and enforce usefulness through deciding what goes in the gem in the first place. But I don't feel too strongly one way or another.

I don't know of anyone actually having used this gem.

listrophy commented 9 years ago

A shortcut for "all of Bend" would certainly be useful.

Jonplussed commented 9 years ago

If that shortcut isn't bender then I don't know what I'm doing with my life.