active_object 5.12.0 → 5.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -3
- data/lib/active_object/object.rb +4 -0
- data/lib/active_object/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96356d62c77b8ed4fa8ebc6718d62cfb21fd4aa04128bc1417e6c1dde058b34d
|
4
|
+
data.tar.gz: 12f5957033dc488fd53560bd154ec3a9e68fe1a292e393ff9783feefa133ef89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 138bd49f77c6e44eb6df253860c74562e3d5f2c2cfc1c4f7bf2aaa470d5e991a59119d1f454e54024a32778328ef4cf944d3d908f37de2552eeb6caf3f47b07e
|
7
|
+
data.tar.gz: 7e52ecc8abfced234babad08334700ff50197a16234f43666010a4ed04734c58a1433406738e78e77c25128c73cd69613344f7f77eddbf5f11cd94585c5cd97d
|
data/README.md
CHANGED
@@ -1491,13 +1491,23 @@ h.slice!(:a, :b) #=> { c: 3, d: 4 }
|
|
1491
1491
|
'Awesome Sting'.blank? #=> false
|
1492
1492
|
```
|
1493
1493
|
|
1494
|
+
**Bool:**
|
1495
|
+
`bool?` determines if an object is a true or false class.
|
1496
|
+
|
1497
|
+
```ruby
|
1498
|
+
true.bool? #=> true
|
1499
|
+
1.bool? #=> false
|
1500
|
+
'false'.bool? #=> false
|
1501
|
+
```
|
1502
|
+
|
1494
1503
|
**Boolean:**
|
1495
1504
|
`boolean?` determines if an object is an boolean.
|
1496
1505
|
|
1497
1506
|
```ruby
|
1498
|
-
|
1499
|
-
|
1500
|
-
'
|
1507
|
+
true.boolean? #=> true
|
1508
|
+
1.boolean? #=> true
|
1509
|
+
'false'.boolean? #=> true
|
1510
|
+
'foo'.boolean? #=> false
|
1501
1511
|
```
|
1502
1512
|
|
1503
1513
|
**Date:**
|
data/lib/active_object/object.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_object
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|