FYI. I’m thinking about using this approach for Facets’ Core
extensions in 2.0. There would be two versions of each require, one
that automatically includes the extension and one that does not.
I don’t see it being worth it really. a.extend(Array::Random); a.shuffle
What is this buying you? (Besides 6 characters, anyway)
Besides being more concise, it also limits us to valid choices. Of
course we can always use extend, but a.extend(String::Random) would
more than likely make a mess of things, and might not even die early
causing peculiar hard to track bugs.
T.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.