class BELParser::Language::Semantics::SemanticsArgumentLengthWarning
Attributes
actual_type[R]
expected_type[R]
Public Class Methods
new(expression_node, spec, expected, actual)
click to toggle source
Calls superclass method
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 50 def initialize(expression_node, spec, expected, actual) super(expression_node, spec) @expected_length = expected.arguments.length @actual_length = actual.arguments.length end
Public Instance Methods
to_s()
click to toggle source
# File lib/bel_parser/language/semantics_ast_warnings.rb, line 56 def to_s %(Expected #@expected_length arguments, but saw #@actual_length arguments.) end