README.md in mohawk-0.0.1 vs README.md in mohawk-0.0.2
- old
+ new
@@ -16,9 +16,38 @@
Or install it yourself as:
$ gem install mohawk
+## Example
+
+### Defining a screen
+
+```ruby
+require 'mohawk'
+
+class LoginScreen
+ include Mohawk
+ window(:title => /Login/)
+
+ text(:username, :id => "UserNameField")
+ text(:password, :id => "PasswordField")
+
+ button(:login, :value => "Login")
+end
+```
+
+### Using the Page-Object
+```ruby
+World(Mohawk::Navigation)
+
+on(LoginScreen) do |screen|
+ screen.username = "levi"
+ screen.password = "secret"
+ screen.login
+end
+```
+
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)