README.md in brauser-3.1.5 vs README.md in brauser-3.1.6
- old
+ new
@@ -72,11 +72,11 @@
# We talk about the ending ? later.
browser.is?(:chrome)
# => true
browser.is?([:msie, :firefox])
# => false
-browser.is?(:chrome, {:lt => "2"}, :osx)
+browser.is?(:chrome, {lt: "2"}, :osx)
# => true
browser.is?(:chrome, ">= 3", :windows)
# => false
```
@@ -90,11 +90,11 @@
Examples:
```ruby
# Those two methods are equivalent.
-browser.v?({:lt => "2", :gt => 1})
+browser.v?({lt: "2", gt: 1})
# => true
browser.is?("< 2 && > 1")
# => true
```
@@ -124,13 +124,13 @@
Ideally, you should use the `?` version to end the query and fetch the result.
```ruby
# These expressions are equivalent.
-browser.is?(:chrome, {:lt => "2"}, :osx)
-browser.is(:chrome, {:lt => "2"}, :osx).result
-browser.is(:chrome).v({:lt => "2"}).on?(:osx)
-browser.is(:chrome).v({:lt => "2"}).on(:osx).result
+browser.is?(:chrome, {lt: "2"}, :osx)
+browser.is(:chrome, {lt: "2"}, :osx).result
+browser.is(:chrome).v({lt: "2"}).on?(:osx)
+browser.is(:chrome).v({lt: "2"}).on(:osx).result
```
Finally, Brauser support dynamic query operator to write simple queries without using concatenation.
You construct the method just using operator specified above, separating method name and method arguments with a `_`.