Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a hash loaded in from a yaml file
- its loaded in as : {:class => 'titled-box-body'}
- I need to pass it to a function that only allows:
- element_exists?(rockstar, :div, :class => 'titled-box-body')
- But when I pass it into the function via the yaml variable
- It looks like this and does not work.
- element_exists?(rockstar, :div, {:class => 'titled-box-body'})
- So my question is how to I convert:
- {:class => 'titled-box-body'}
- to:
- :class => 'titled-box-body'
- and am i missing something here? I'm thinking they should be
- exactly the same as far as ruby is concerned...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement