class BELParser::Language::Semantics::SemanticsInvalidProteinModificationWarning

Public Class Methods

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

Public Instance Methods

to_s() click to toggle source
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 139
def to_s
  pmod = @expression_node.children[0].string_literal
  %(Protein modification of "#{pmod}" does not match allowed protein modifications: #{@expected_protein_modifications.join(', ')})
end