stupidedi 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby/array.rb +8 -0
- data/lib/ruby/blank.rb +18 -18
- data/lib/stupidedi/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: 9ff1d8f6beea22666b9a2951803ffa317f1e4751
|
4
|
+
data.tar.gz: 93a7f43ad7423f24bb1ea303b332adab7137d24b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4154b4e91f33438c147ee2be6c1839a783b16d34e123a8e8e04bee574908f2646ce459afad0a23c4630213a43c329a8c24e05a5fab1a801094485c3749a2915b
|
7
|
+
data.tar.gz: ce31dfd096d0b953289c0b56fa0ea08f158e1d143a219a9366ee34075ac856e3fb8020bfd793f7b9bebd1f48476ae3420bef328e178dc5d60b2141568d8164c3
|
data/lib/ruby/array.rb
CHANGED
data/lib/ruby/blank.rb
CHANGED
@@ -16,24 +16,24 @@ class String
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
module Enumerable
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
end
|
19
|
+
# module Enumerable
|
20
|
+
#
|
21
|
+
# # True if the collection is `empty?`
|
22
|
+
# #
|
23
|
+
# # @example
|
24
|
+
# # [1,2].blank? #=> false
|
25
|
+
# # [].blank? #=> false
|
26
|
+
# #
|
27
|
+
# unless respond_to?(:blank?)
|
28
|
+
#
|
29
|
+
# def blank?
|
30
|
+
# empty?
|
31
|
+
# end
|
32
|
+
#
|
33
|
+
# def present?
|
34
|
+
# not empty?
|
35
|
+
# end
|
36
|
+
# end
|
37
37
|
|
38
38
|
class NilClass
|
39
39
|
|
data/lib/stupidedi/version.rb
CHANGED