class BELParser::Language::Semantics::ListFunctionSubjectWarning
ListFunctionSubjectWarning
defines a {SemanticsWarning} that indicates that a list {BELParser::Parsers::AST::Term} was used as the {BELParser::Parsers::AST::Subject} of a {BELParser::Parsers::AST::Statement}.
Public Class Methods
new(subject_node, spec)
click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics/list_function_subject.rb, line 35 def initialize(subject_node, spec) super(subject_node, spec) end
Public Instance Methods
to_s()
click to toggle source
# File lib/bel_parser/language/semantics/list_function_subject.rb, line 39 def to_s <<-MSG.gsub(/ {12}/, '').delete("\n") List term is only valid in the Object of a Statement. MSG end