class BELParser::Language::Semantics::SemanticsNilNodeWarning
Attributes
expected_type[R]
Public Class Methods
new(expression_node, spec, expected)
click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 10 def initialize(expression_node, spec, expected) super(expression_node, spec) @expected_type = expected.ast_type end
Public Instance Methods
to_s()
click to toggle source
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 15 def to_s %(Missing the #{@expected_type} type.) end