bel_parser 1.0.0.alpha.36 → 1.0.0.alpha.37
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: 55df8333bbd12398b1151e81ebc1a3a688d85018
|
4
|
+
data.tar.gz: cff11bff145bb0bbc763164df9a3b776bc926110
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3278fecf5673cb0c2ada17e2d78bce561dbbe27c635ce6739bebe07c824cb4d3aeaf3b6e25405eb5a839323d97b8b43403e58ae96187691c8a3749b2882e8a61
|
7
|
+
data.tar.gz: cfe4a2287ff327df80b9edc79d44f7b9f076efdcfb3e97fb5b0975cdcb3b841ccf889c7ac543d6464f198243f7f1c937c665abb95b1e1d89942a8fc2dd3f2dff
|
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
|