class BELParser::Language::Semantics::MultipleSubjectObjectWarning
Represents a {SemanticsWarning} when a {BELParser::Parsers::AST::Statement} includes the subject term as an argument of an object list term.
Public Class Methods
new(stmt_node, spec, rel)
click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics/multiple_subject_object.rb, line 45 def initialize(stmt_node, spec, rel) super(stmt_node, spec) @rel = rel end
Public Instance Methods
to_s()
click to toggle source
# File lib/bel_parser/language/semantics/multiple_subject_object.rb, line 50 def to_s <<-MSG.gsub(/ {12}/, '').delete("\n") A "#{@rel.long}" statement cannot use the subject term as an object list() argument. MSG end