elixirize 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.md +7 -7
- data/lib/elixirize.rb +1 -3
- data/lib/elixirize/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba8996108e4f521e3c1ece8b4a56208c0f6c0aa7
|
4
|
+
data.tar.gz: cc1f51d3f33e56107b4b8db31301313f4b29ac41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00540d8a078ae88e35b403e65ce6a19c287af5f6ad29f5f42b9f295956ccf6d384f0c18acea3141d515ac1353ecff7719da3218dc56b37c6d810ccaf1676de23
|
7
|
+
data.tar.gz: 546dc501ed9724a0b05f322723a3e330fcdc4cadf8abf7d954d7c8eea68732fa06aa16107861f6de55debbacc5e7e981df5538ace3c9f9efe60273a774acbae7
|
data/.travis.yml
CHANGED
@@ -8,7 +8,7 @@ env:
|
|
8
8
|
- secure: qXpWydxv6DHMrvGL8WH4wNRY4MTY7KV/x308Y5dHkZCrI7k9UOccvznp69KT3Z+tzYEFDXfUix5wA6pgyVcvrsQyiLSjGcyzHhxJKs1gk0gcxAkmhwHmUP9aiXWUe/mzpj7Uoc2DHwpPTpK1wQ5kV6eV+jzQLuN3nhfNr2sL8b4=
|
9
9
|
addons:
|
10
10
|
code_climate:
|
11
|
-
repo_token:
|
11
|
+
repo_token: 87b4abe10917ab899b09956c25e9f389e4ce3abe126c1f98549de726692c209c
|
12
12
|
script: bundle exec rake test
|
13
13
|
after_success:
|
14
14
|
- bundle exec codeclimate-test-reporter
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
# Elixirize
|
9
9
|
|
10
|
-
This
|
10
|
+
This adds the `ᐅ` method to Ruby. It pipes in the returned value of the left as the first parameter of the
|
11
11
|
Proc on the right.
|
12
12
|
|
13
13
|
In Linux to enter ᐅ you need to type CTRl-SHIFT-U and then 1405 followed by the space or enter key.
|
@@ -32,19 +32,19 @@ Or install it yourself as:
|
|
32
32
|
|
33
33
|
```ruby
|
34
34
|
def add a, b
|
35
|
-
a+b
|
35
|
+
a + b
|
36
36
|
end
|
37
37
|
|
38
|
-
subtract = ->a, b{a-b}
|
38
|
+
subtract = ->a, b{ a - b }
|
39
39
|
|
40
40
|
add(4, 5).ᐅ subtract, 15
|
41
|
-
# => 6
|
41
|
+
# => -6
|
42
42
|
|
43
|
-
def divide a,b
|
44
|
-
a/b
|
43
|
+
def divide a, b
|
44
|
+
a / b
|
45
45
|
end
|
46
46
|
|
47
|
-
add(
|
47
|
+
add(40, 60).ᐅ method(:divide), 20
|
48
48
|
# => 5
|
49
49
|
```
|
50
50
|
|
data/lib/elixirize.rb
CHANGED
data/lib/elixirize/version.rb
CHANGED