Thought i remembered it from the Pickaxe book, guess I did. :) If you check
out the bottom of the page on this link:
http://www.rubycentral.com/book/tut_methods.html
you'll find a reference to it - Collecting hash arguments. Passing curly
braces to a method can get confused with blocks, so this is a convenient
alternate in Ruby.

-c
On 2/8/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:

Like Charley said, the first form below is automatically understood by
ruby to imply the second. It is a feature of Ruby and there is nothing
special in the Watir library to make this happen.

Bret

> ie.div(:name => 'foo', :index => 2).click
>
> ie.div({:name => 'foo', :index => 2}).click
>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to