ravensat 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ravensat/ast/and_node.rb +1 -0
- data/lib/ravensat/ast/node.rb +2 -0
- data/lib/ravensat/ast/or_node.rb +1 -0
- data/lib/ravensat/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: ceabe3e3d03de374a38f92df583ab84bc69cbdfd80bc842d722bf8730a60c69e
|
4
|
+
data.tar.gz: 1973d2e270011520d59ec8ab32296f4589a4511901b4701bb58c74f066535a57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6e2aa1f4f21111d07f8e586876293fe2569190eeb4875cfef4bf35d1bc23c755475d0470b15f24dd6e640d6f7d3a4ec927b6102f8401c3dc7a46527f1b5d2fd
|
7
|
+
data.tar.gz: 6f69d190d6fe8546035a59ba4643c33322210716a295a3b6c556d4f063d1a187e54afd507d0b4c0a10d65bc3db3766f23f2b58cc522f6ad67d0955ed78b77ca7
|
data/lib/ravensat/ast/node.rb
CHANGED
@@ -63,10 +63,12 @@ module Ravensat
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def &(object)
|
66
|
+
raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node
|
66
67
|
AndNode.new(self, object)
|
67
68
|
end
|
68
69
|
|
69
70
|
def |(object)
|
71
|
+
raise TypeError.new("#{object.class} can't be coerced into Ravensat::Node") unless object.is_a? Node
|
70
72
|
OrNode.new(self, object)
|
71
73
|
end
|
72
74
|
|
data/lib/ravensat/ast/or_node.rb
CHANGED
data/lib/ravensat/version.rb
CHANGED