class BELParser::Language::Semantics::SemanticHasEncoding
Public Class Methods
new(**properties)
click to toggle source
Calls superclass method
BELParser::Language::Semantics::SemanticASTNode::new
# File lib/bel_parser/language/semantics_ast.rb, line 594 def initialize(**properties) super(:has_encoding, [], properties) end
Public Instance Methods
match(value_node, spec, will_match_partial = false)
click to toggle source
# File lib/bel_parser/language/semantics_ast.rb, line 598 def match(value_node, spec, will_match_partial = false) if value_node.respond_to?(:encoding) && value_node.encoding success(value_node, spec) else missing_encoding_warning(value_node, spec) end end