[rspec-users] Coming Soon...

David Chelimsky dchelimsky at gmail.com
Fri Feb 2 11:06:33 EST 2007


On 2/2/07, Jay Levitt <lists-rspec at shopwatch.org> wrote:
> David Chelimsky wrote:
> >>> Parens: When you do this:
> >>>
> >>>   a.b c d
> >>>
> >>> ... Ruby gives you the all familiar:
> >>>
> >>>   "warning: parenthesize argument(s) for future version"
>
> Nutty thought: the code is executed by eval'ing the block passed to
> context, right?  So couldn't context eval a version of the code that was
> parsed by something like, though more robust than,
> s/\.should/\.should\(.*\)/ ?

It doesn't parse the block - it executes it. I think that parsing it
would open up a huge can of worms.

Nutty idea though ;)

Cheers,
David

>
> Jay
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list