README.md in phantom-ruby-browser-0.0.2 vs README.md in phantom-ruby-browser-0.1.0
- old
+ new
@@ -5,26 +5,23 @@
**Under development (October 2014)**
Example
-------
-E.g. print DOM of javascript rendered page
+Print DOM of javascript rendered page
```ruby
browser = PhantomRubyBrowser.new("http://google.com/analytics")
puts browser.content
```
-Command line example
+Open page, click on a link and save DOM
+```ruby
+browser = PhantomRubyBrowser.new("http://google.com/analytics")
+puts browser.content_after_click('a.ga-button')
```
-$ gem install "phantom-ruby-browser"
-Fetching: phantomjs-1.9.7.1.gem (100%)
-Successfully installed phantomjs-1.9.7.1
-Fetching: phantom-ruby-browser-0.0.1.gem (100%)
-Successfully installed phantom-ruby-browser-0.0.1
-Installing ri documentation for phantom-ruby-browser-0.0.1
-Installing ri documentation for phantomjs-1.9.7.1
-2 gems installed
+Command line example
+```
$ irb
1.9.3-p547 :002 > require 'phantom_ruby_browser'
=> true
1.9.3-p547 :003 > browser = PhantomRubyBrowser.new("http://google.com/analytics")
=> #<PhantomRubyBrowser:0x00000001daf0d8 @location="http://google.com/analytics", @phantomjs=Phantomjs>
\ No newline at end of file