peco_selector 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/peco_selector.rb +3 -1
- data/lib/peco_selector/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: b6abf1e0ece31884864db6ae1d4658dc52af7f62
|
4
|
+
data.tar.gz: 83b73f32e95cba72104b6f9b0b175a50915f9094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67f597b0fe05ed053114b47fcbcf6ae89bd7d9610052f963847101d89e97beace5bc899ceab9da3d552ae7ec47d4350e908cb5f90334061cd43384f89499154c
|
7
|
+
data.tar.gz: 27663f0974dc9079275f3f0fb799945410b76b39ec1106a3ef4c0491e278f882df6726143864c22f656f028989e300af7b97691c4b48d161914b2ef24ae749b0
|
data/README.md
CHANGED
@@ -16,10 +16,14 @@ And then execute:
|
|
16
16
|
|
17
17
|
## Usage
|
18
18
|
|
19
|
-
```
|
19
|
+
```ruby
|
20
20
|
bob = Object.new
|
21
21
|
alice = Object.new
|
22
|
+
|
22
23
|
result = PecoSelector.select_from(bob: bob, alice: alice)
|
24
|
+
# or
|
25
|
+
result = PecoSelector.select_from([['bob', bob], ['alice', alice]])
|
26
|
+
|
23
27
|
result # => [bob]
|
24
28
|
```
|
25
29
|
|
data/lib/peco_selector.rb
CHANGED