Would someone object aliasing matches for match in Regexp?
I know I'm free to do it for myself, but I meant for standard Ruby. I'm not
sure if this raises some debate about polluting current namespaces, or that
maybe there should be aliases for "better" English code consistently in Ruby
classes.
I just like to say like following example, and I feel it's looks much
better. Two letters, such a difference, what a world, what a language :).
def beautiful_things(line)
if @test_re.matches line
say_beautiful_things
else
do_beautiful_things
end
end
- Aleksi