README.md in elixirize-0.1.0 vs README.md in elixirize-0.2.0
- old
+ new
@@ -5,11 +5,11 @@
[![Inline docs](http://inch-ci.org/github/danielpclark/elixirize.svg?branch=master)](http://inch-ci.org/github/danielpclark/elixirize)
[![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg)](https://saythanks.io/to/danielpclark)
# Elixirize
-This add the `ᐅ` method to Ruby. It pipes in the returned value of the left as the last parameter of the
+This adds the `ᐅ` method to Ruby. It pipes in the returned value of the left as the first parameter of the
Proc on the right.
In Linux to enter ᐅ you need to type CTRl-SHIFT-U and then 1405 followed by the space or enter key.
## Installation
@@ -30,22 +30,22 @@
## Usage
```ruby
def add a, b
- a+b
+ a + b
end
-subtract = ->a, b{a-b}
+subtract = ->a, b{ a - b }
add(4, 5).ᐅ subtract, 15
-# => 6
+# => -6
-def divide a,b
- a/b
+def divide a, b
+ a / b
end
-add(4, 6).ᐅ method(:divide), 50
+add(40, 60).ᐅ method(:divide), 20
# => 5
```
## Development