Rahul,

since you are using Cucumber, look into Step Argument Transforms; they are specifically designed to deal with situations like this.

--
DK
AIM: DKroot1, Skype: DKroot


On 7/5/11 9:54 AM, Rahul Sharma wrote:
Hi Guys,

Any way to pass in a string argument to a method and interpret it a
boolean without specifying the logic in the method?
Example:
user.set_value(option)

The option argument could be "true" or "false" coming in as a string
from a cucumber table?

Thanks in advance.


--
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to