colszowka / phantomjs-gem

Phantomjs via Rubygems: Auto-install phantomjs on demand for current platform. Comes with poltergeist integration.
Other
222 stars 104 forks source link

Example in Read Me of setting the optional args in Phantomjs.run #41

Closed snoblenet closed 9 years ago

snoblenet commented 9 years ago

Hi there,

Can see from the code that Phantomjs.run accepts optional arguments as a block.

Would it be possible to include a short example of this in the Read Me?

Covering the args being sent from Ruby and being received by Phantom.js.

Thanks,

Steven.

snoblenet commented 9 years ago

Answer is Phantomjs.run('./path/to/script.js', arg2, arg3)