active_object 5.8.6 → 5.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/active_object/object.rb +4 -0
- data/lib/active_object/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6b40bd57ea51c55d63f9fc6dce69d00e584694b585b62d092b9d0c4e80272ae
|
4
|
+
data.tar.gz: 46a27d84506b6380b858a460f08f2f5362eb18a39dd354e9d00bcecca1cb2124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25195c4fdef1de1b7a3903cc35f8005ddd6d7e1f006098988fade197a4850cfe09ea815f5a5ec9a44531f4ea3a7b0b57d0fdd088e247dc517ba5bf50046adb6d
|
7
|
+
data.tar.gz: 4114431acdea241350d2d605a4a96ae731c3277ff3c9ebb5d1cb83799069b1bc81ee91cf4c8d43942934bbfedd94fec5daf4fb82ab6e1193ae0adaab4c3b42db
|
data/README.md
CHANGED
@@ -1657,6 +1657,15 @@ false.truthy? #=> false
|
|
1657
1657
|
'example'.try(:fake_method) #=> nil
|
1658
1658
|
```
|
1659
1659
|
|
1660
|
+
**Try Send:**
|
1661
|
+
`try_send` execute caller to an object and rescues with nil.
|
1662
|
+
|
1663
|
+
```ruby
|
1664
|
+
3.safe_send(:fake) #=> nil
|
1665
|
+
3.safe_send(:to_s) #=> '3'
|
1666
|
+
3.safe_send(:+, 2) #=> 5
|
1667
|
+
```
|
1668
|
+
|
1660
1669
|
## Range
|
1661
1670
|
|
1662
1671
|
**Combine:**
|
data/lib/active_object/object.rb
CHANGED