mobj 2.9.4 → 2.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/ext/object.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmQ0ZmRjZjBmYTFiNzJmM2ZhMGFhNDU0Y2UwODFjOTA2NWM4ZjJlZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGVjOTkxZTM3MWEzNThjMTQ0MmJiNDZiZGU2YzQzNjM1ZDg3MTZlNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzVlY2I2ZGQ3ZmFiOTMxYjEyOTY4OGExNGUxOTc2NTc1ZTBjNjhmOGRlNTlh
|
10
|
+
ZmI0ZTU0MDIyMTY2MzYyZGQ5ZjdlZDZlNjc4ZDczZGU3M2I3NjBlYjhhY2Jk
|
11
|
+
YTVhMzRhZWQxNzBjZGUyMWYxMDg5M2RhZDdiYTY0ODU2Mjg1YWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGZmM2U5ZDFmNTdjMTM4ZTQwNTgwNTZiZTYyNDY1OGI2ZGQ2YzVjZDk1OWVm
|
14
|
+
YjAxZTgyNDViMjdiYjY5MzhlNGQwYjI0NmVjNjViN2E2NDM1NjNhYjE3Y2Ez
|
15
|
+
NzkzNzE0YzY1YTZmNWMwMTJiNTRmMzJmNGJmMDY1YmM4YmEzYmM=
|
data/lib/ext/object.rb
CHANGED
@@ -3,10 +3,10 @@ module Mobj
|
|
3
3
|
class ::Object
|
4
4
|
alias_method :responds_to?, :respond_to?
|
5
5
|
|
6
|
-
def i!()
|
7
|
-
def f!()
|
8
|
-
def
|
9
|
-
def zeno!()
|
6
|
+
def i!() to_s.to_i end
|
7
|
+
def f!() to_s.to_f end
|
8
|
+
def z0?() respond_to?(:zero?) ? zero? : f!.zero? end
|
9
|
+
def zeno!() z0? ? 1.0 : self end
|
10
10
|
|
11
11
|
alias_method :n?, :nil?
|
12
12
|
|