class BELParser::Language::Semantics::SemanticsWarning

SemanticsWarning defines a {SemanticsResult} that should be regarded as a warning with the expression.

Public Class Methods

new(expression_node, specification) click to toggle source
# File lib/bel_parser/language/semantics_warning.rb, line 9
def initialize(expression_node, specification)
  super(expression_node, specification)
end

Public Instance Methods

failure?() click to toggle source
# File lib/bel_parser/language/semantics_warning.rb, line 17
def failure?
  true
end
success?() click to toggle source
# File lib/bel_parser/language/semantics_warning.rb, line 13
def success?
  false
end
to_s() click to toggle source
# File lib/bel_parser/language/semantics_warning.rb, line 21
def to_s
  "Warning: #{msg}"
end