[rspec-users] Cucumber - but really ruby

Ngoc Dao ngocdaothanh at gmail.com
Tue Feb 3 14:01:19 EST 2009


Explanation:
http://jimhoskins.com/2008/10/07/ruby-percent-syntax-percent-functions/

Ngoc.


On Wed, Feb 4, 2009 at 3:56 AM, Emmanuel Pinault <seatmanu at gmail.com> wrote:

> w% is a ruby notation. It creates an Array of of the literal string  you
> type separated by white space
>
> Emmanuel
>
> On Feb 3, 2009, at 10:49 AM, James Byrne wrote:
>
>  In the cucumber rake task I see this construct:
>>
>>   t.rcov_opts = %w{--rails --exclude
>> lib\/ruby,lib64\/ruby,\/usr,osx\/objc,gems\/,test\/,spec\/,features\/}
>>   t.rcov_opts << %[--output "coverage"]
>>
>> My questions is:  What do %w and % represent with respect to the
>> "block"? in the first case and the "array"? in the second?  I cannot
>> find an explanation of either usage in the documentation.
>> --
>> Posted via http://www.ruby-forum.com/.
>> _______________________________________________
>> rspec-users mailing list
>> rspec-users at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/rspec-users
>>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090204/8b93ceb9/attachment.html>


More information about the rspec-users mailing list