Class: BELParser::Language::Semantics::SemanticsInvalidAminoAcidRangeWarning
- Inherits:
-
SemanticsWarning
- Object
- SemanticsResult
- SemanticsWarning
- BELParser::Language::Semantics::SemanticsInvalidAminoAcidRangeWarning
- Defined in:
- lib/bel_parser/language/semantics_ast_warnings.rb
Instance Attribute Summary
Attributes inherited from SemanticsResult
#expression_node, #specification
Instance Method Summary collapse
-
#initialize(expression_node, spec) ⇒ SemanticsInvalidAminoAcidRangeWarning
constructor
A new instance of SemanticsInvalidAminoAcidRangeWarning.
- #to_s ⇒ Object
Methods inherited from SemanticsWarning
Methods inherited from SemanticsResult
Constructor Details
#initialize(expression_node, spec) ⇒ SemanticsInvalidAminoAcidRangeWarning
Returns a new instance of SemanticsInvalidAminoAcidRangeWarning.
158 159 160 |
# File 'lib/bel_parser/language/semantics_ast_warnings.rb', line 158 def initialize(expression_node, spec) super(expression_node, spec) end |
Instance Method Details
#to_s ⇒ Object
162 163 164 165 |
# File 'lib/bel_parser/language/semantics_ast_warnings.rb', line 162 def to_s amino_acid_range = @expression_node.children[0].string_literal %(Invalid amino acid range "#{amino_acid_range}".) end |