Class: BELParser::Language::Syntax::InvalidRelationshipSyntaxError
- Inherits:
-
SyntaxError
- Object
- SyntaxResult
- SyntaxError
- BELParser::Language::Syntax::InvalidRelationshipSyntaxError
- Defined in:
- lib/bel_parser/language/syntax/invalid_relationship.rb
Overview
InvalidRelationshipSyntaxError indicates a relationship was invalid.
Instance Attribute Summary collapse
-
#relationship ⇒ Object
readonly
Gets the relationship literal that was invalid according to a BEL specification.
Attributes inherited from SyntaxResult
#expression_node, #specification
Instance Method Summary collapse
-
#initialize(stmt_node, spec, relationship) ⇒ InvalidRelationshipSyntaxError
constructor
A new instance of InvalidRelationshipSyntaxError.
- #msg ⇒ Object
Methods inherited from SyntaxError
Methods inherited from SyntaxResult
Constructor Details
#initialize(stmt_node, spec, relationship) ⇒ InvalidRelationshipSyntaxError
Returns a new instance of InvalidRelationshipSyntaxError.
32 33 34 35 |
# File 'lib/bel_parser/language/syntax/invalid_relationship.rb', line 32 def initialize(stmt_node, spec, relationship) super(stmt_node, spec) @relationship = relationship end |
Instance Attribute Details
#relationship ⇒ Object (readonly)
Gets the relationship literal that was invalid according to a BEL specification.
30 31 32 |
# File 'lib/bel_parser/language/syntax/invalid_relationship.rb', line 30 def relationship @relationship end |
Instance Method Details
#msg ⇒ Object
37 38 39 |
# File 'lib/bel_parser/language/syntax/invalid_relationship.rb', line 37 def msg %(Invalid relationship "#{relationship}".) end |