Class: BELParser::Language::Semantics::NonObjectListWarning
- Inherits:
-
SemanticsWarning
- Object
- SemanticsResult
- SemanticsWarning
- BELParser::Language::Semantics::NonObjectListWarning
- Defined in:
- lib/bel_parser/language/semantics/non_object_list.rb
Overview
Represents a SemanticsWarning when a multiple relationship Parsers::AST::Statement does not reference an object list term.
Instance Attribute Summary
Attributes inherited from SemanticsResult
#expression_node, #specification
Instance Method Summary collapse
-
#initialize(statement_node, spec, rel) ⇒ NonObjectListWarning
constructor
A new instance of NonObjectListWarning.
- #to_s ⇒ Object
Methods inherited from SemanticsWarning
Methods inherited from SemanticsResult
Constructor Details
#initialize(statement_node, spec, rel) ⇒ NonObjectListWarning
Returns a new instance of NonObjectListWarning.
46 47 48 49 |
# File 'lib/bel_parser/language/semantics/non_object_list.rb', line 46 def initialize(statement_node, spec, rel) super(statement_node, spec) @rel = rel end |
Instance Method Details
#to_s ⇒ Object
51 52 53 |
# File 'lib/bel_parser/language/semantics/non_object_list.rb', line 51 def to_s %(The "#{@rel.long}" relationship must take a list() object term.) end |