maybe_fun 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +32 -2
- data/lib/maybe_fun/object.rb +1 -1
- data/lib/maybe_fun/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: 2e176be640aedb16ee5686124fdfd1845af8857f
|
4
|
+
data.tar.gz: 27b3c4c0f33495967893d1412160fd8873720ba8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8e35970b02c620a9075dc7e55490267528a5e51fb45fb5399c500a67bf3a814e128800122007668872f25cbe73bfdb280e08db7fcd62065355001104c83e612
|
7
|
+
data.tar.gz: 04f1fac292bd1fb211d07e1b262b4ca2cdf19985695af2e674eee2ce3ffbe8f4459fe9af9b6fe12136ceac4f1a5577955ff7460136c440c9a8c6c9ccc4496ed5
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -22,7 +22,37 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
```
|
26
|
+
' foo '.with(&:strip) # => 'foo'
|
27
|
+
nil.with(&:strip) # => nil
|
28
|
+
```
|
29
|
+
|
30
|
+
```
|
31
|
+
'foo'.do { puts 'bar' }
|
32
|
+
# bar
|
33
|
+
# "foo"
|
34
|
+
|
35
|
+
nil.do { puts 'bar' }
|
36
|
+
# nil
|
37
|
+
```
|
38
|
+
|
39
|
+
```
|
40
|
+
true.if_true { puts 'baz' }
|
41
|
+
# baz
|
42
|
+
# true
|
43
|
+
|
44
|
+
false.if_true { puts 'baz' }
|
45
|
+
# false
|
46
|
+
```
|
47
|
+
|
48
|
+
```
|
49
|
+
false.if_false { puts 'quux' }
|
50
|
+
# quux
|
51
|
+
# true
|
52
|
+
|
53
|
+
true.if_false { puts 'quux' }
|
54
|
+
# true
|
55
|
+
```
|
26
56
|
|
27
57
|
## Development
|
28
58
|
|
@@ -32,7 +62,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
62
|
|
33
63
|
## Contributing
|
34
64
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
65
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/blackchestnut/maybe_fun. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
|
36
66
|
|
37
67
|
|
38
68
|
## License
|
data/lib/maybe_fun/object.rb
CHANGED
data/lib/maybe_fun/version.rb
CHANGED