README.md in ru2-2.1.5 vs README.md in ru2-2.2.0
- old
+ new
@@ -87,13 +87,13 @@
5
$ ru 'map(:to_i).sum' myfile myfile
10
```
-You can also run Ruby code without any input by prepending a `! `:
+You can also run Ruby code without any input by prepending a `=`:
```bash
-$ ru '! 2 + 3'
+$ ru '=2 + 3'
5
```
The code argument is run as if it has `$stdin.each_line.map(&:chomp).` prepended to it. The result is converted to a string and printed. So, if you run `ru 'map(&:to_i).sum'`, you can think of it as running `puts $stdin.each_line.map(&:chomp).map(&:to_i).sum`.