Class: BELParser::Language::Semantics::SemanticsMissingEncodingWarning

Inherits:
SemanticsWarning show all
Defined in:
lib/bel_parser/language/semantics_ast_warnings.rb

Instance Attribute Summary

Attributes inherited from SemanticsResult

#expression_node, #specification

Instance Method Summary collapse

Methods inherited from SemanticsWarning

#failure?, #success?

Methods inherited from SemanticsResult

#failure?, #msg, #success?

Constructor Details

#initialize(expression_node, spec) ⇒ SemanticsMissingEncodingWarning

Returns a new instance of SemanticsMissingEncodingWarning.



87
88
89
# File 'lib/bel_parser/language/semantics_ast_warnings.rb', line 87

def initialize(expression_node, spec)
  super(expression_node, spec)
end

Instance Method Details

#to_sObject



91
92
93
94
# File 'lib/bel_parser/language/semantics_ast_warnings.rb', line 91

def to_s
  value = @expression_node.children[0].string_literal
  %(Missing encoding for value "#{value}".)
end