class BELParser::Language::Semantics::NestedStatementWithoutObjectWarning

Represents a {SemanticsWarning} when a nested {BELParser::Parsers::AST::Statement} does not have an object.

Attributes

non_causal_relationship[R]

Public Class Methods

new(stmt_node, spec) click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics/nested_statement_without_object.rb, line 31
def initialize(stmt_node, spec)
  super(stmt_node, spec)
end

Public Instance Methods

to_s() click to toggle source
# File lib/bel_parser/language/semantics/nested_statement_without_object.rb, line 35
        def to_s
          <<-MSG.gsub(/ {12}/, '')
            Nested statement does not have an object.
          MSG
        end