README.md in tty-command-0.1.0 vs README.md in tty-command-0.2.0

- old
+ new

@@ -47,10 +47,11 @@ * [2.1. Run](#21-run) * [2.2. Run!](#22-run) * [2.3. Test](#23-test) * [2.4. Logging](#24-logging) * [2.5. Dry run](#25-dry-run) + * [2.6. Ruby interpreter](#26-ruby-interpreter) * [3. Advanced Interface](#3-advanced-interface) * [3.1. Environment variables](#31-environment-variables) * [3.2. Options](#32-options) * [3.2.1. Current directory](#321-current-directory) * [3.2.2. Redirection](#322-redirection) @@ -192,10 +193,18 @@ ```ruby cmd.dry_run? # => true ``` +### 2.6 Ruby interpreter + +In order to run a command with Ruby interpreter do: + +```ruby +cmd.ruby %q{-e "puts 'Hello world'"} +``` + ## 3. Advanced Interface ### 3.1 Environment variables The environment variables need to be provided as hash entries, that can be set directly as a first argument: @@ -324,10 +333,10 @@ result.failed? # => false ``` #### 3.3.3 exited? -To check if command run to complition use `exited?` or `complete?`: +To check if command ran to completion use `exited?` or `complete?`: ```ruby result = cmd.run(:echo, 'Hello') result.exited? # => true result.complete? # => true