lisp-interpreter 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95797273f33bc2b8be5709474ab1495d38bfb342
|
4
|
+
data.tar.gz: b16d5d97ee2d7d7d58b92685adb0fb7014bd3e4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f5bf08dda0d96dd254e1905b67e70c73d042dfaa866b69f9f7fce80ed5ef6bd05610b0cd249d6b20aa97a1b07e8d2f01226afcbe2661338ad38479ab4cc028a
|
7
|
+
data.tar.gz: 811f88a1d5f579c6bc609a536be1d94eb514a115ddb94d7a86ae2190bcc769352b5d9e4d8903ecd44eae8e471e2f59fdaa32c9d40c59a83d5f08c643528f0de9
|
@@ -6,7 +6,7 @@ class Object
|
|
6
6
|
|
7
7
|
def to_num
|
8
8
|
return to_f if to_f.to_s == to_s
|
9
|
-
|
9
|
+
to_i if to_i.to_s == to_s
|
10
10
|
end
|
11
11
|
|
12
12
|
def character?
|
@@ -32,8 +32,7 @@ class Object
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def quote?
|
35
|
-
|
36
|
-
false
|
35
|
+
start_with? '\''
|
37
36
|
end
|
38
37
|
|
39
38
|
def boolean?
|