Class: BELParser::Language::Semantics::SignatureMappingWarning
- Inherits:
-
SemanticsWarning
- Object
- SemanticsResult
- SemanticsWarning
- BELParser::Language::Semantics::SignatureMappingWarning
- Defined in:
- lib/bel_parser/language/semantics/signature_mapping.rb
Overview
SignatureMappingWarning defines a SemanticsWarning that indicates an unsuccessful signature match.
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
Attributes inherited from SemanticsResult
#expression_node, #specification
Instance Method Summary collapse
-
#initialize(term_node, spec, signature, results) ⇒ SignatureMappingWarning
constructor
A new instance of SignatureMappingWarning.
- #to_s ⇒ Object
Methods inherited from SemanticsWarning
Methods inherited from SemanticsResult
Constructor Details
#initialize(term_node, spec, signature, results) ⇒ SignatureMappingWarning
Returns a new instance of SignatureMappingWarning.
69 70 71 72 73 |
# File 'lib/bel_parser/language/semantics/signature_mapping.rb', line 69 def initialize(term_node, spec, signature, results) super(term_node, spec) @signature = signature @results = results end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
67 68 69 |
# File 'lib/bel_parser/language/semantics/signature_mapping.rb', line 67 def results @results end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
66 67 68 |
# File 'lib/bel_parser/language/semantics/signature_mapping.rb', line 66 def signature @signature end |
Instance Method Details
#to_s ⇒ Object
75 76 77 78 79 |
# File 'lib/bel_parser/language/semantics/signature_mapping.rb', line 75 def to_s <<-MSG.gsub(/ {12}/, '').gsub(/\n$/, '') Term did not match function signature: #{@signature.string_form} MSG end |