bel_parser 1.0.0.alpha.36-java → 1.0.0.alpha.37-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bel_parser/expression/model/statement.rb +3 -2
- 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: df5de40d49fa5f1c92d8c28e18ad5de50fe47e7b
|
4
|
+
data.tar.gz: 0e5415a703c7c80fd790a03202deb2e89a8bfedf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbaa9c67cd6d17658ffb199848cbbac9f811cc6acbbdfda28c9aa3b51e42d4a2779a5a2ed5a372147e85f0f934a552d638cfe789f3429a489064b3b1526e1cd1
|
7
|
+
data.tar.gz: fb1963ecb11a771c562f0840996f178f3eb2e56d64e072b3c6c0563c85fb42fba344e4200393239226b8e7800080b41f925e425175b351bb6c305ffa44cdaf9c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.alpha.
|
1
|
+
1.0.0.alpha.37
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'bel_parser/quoting'
|
2
|
+
require 'bel_parser/language/relationship'
|
2
3
|
|
3
4
|
module BELParser
|
4
5
|
module Expression
|
@@ -31,14 +32,14 @@ module BELParser
|
|
31
32
|
unless relationship.nil? || relationship.is_a?(BELParser::Language::Relationship)
|
32
33
|
raise(
|
33
34
|
ArgumentError,
|
34
|
-
"relationship: expected nil or Relationship, actual #{
|
35
|
+
"relationship: expected nil or Relationship, actual #{relationship.class}")
|
35
36
|
end
|
36
37
|
@relationship = relationship
|
37
38
|
|
38
39
|
unless object.nil? || [Term, Statement].any?(&object.method(:is_a?))
|
39
40
|
raise(
|
40
41
|
ArgumentError,
|
41
|
-
"object: expected nil, Term, or Statement, actual #{
|
42
|
+
"object: expected nil, Term, or Statement, actual #{object.class}")
|
42
43
|
end
|
43
44
|
@object = object
|
44
45
|
@comment = comment
|