class BELParser::Language::Semantics::SemanticsNotNilNodeWarning

Attributes

actual_type[R]

Public Class Methods

new(expression_node, spec) click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 23
def initialize(expression_node, spec)
  super(expression_node, spec)
  @actual_type = expression_node.type
end

Public Instance Methods

to_s() click to toggle source
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 28
def to_s
  %(Expected nothing, but saw #{actual_type} type.)
end