[rspec-users] Cucumber - but really ruby % and %w

James Byrne lists at ruby-forum.com
Tue Feb 3 14:18:17 EST 2009

James Byrne wrote:

> This would not happen to be the same thing as %Q[..] would it?

Apparently, the construct:

    t.rcov_opts = %w{--rails --exclude

    t.rcov_opts << %[--output "coverage"]

is equivalent to:

    t.rcov_opts = [ "--rails"
      "--output" "coverage"
Posted so that I can google for it next time.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list