Class: TypeParamCountMismatchError
- Inherits:
-
CompilerError
- Object
- CompilerError
- TypeParamCountMismatchError
- Defined in:
- lib/compiler_error.rb
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(ast, expected_count) ⇒ TypeParamCountMismatchError
constructor
A new instance of TypeParamCountMismatchError.
Methods inherited from CompilerError
Constructor Details
#initialize(ast, expected_count) ⇒ TypeParamCountMismatchError
Returns a new instance of TypeParamCountMismatchError.
71 72 73 74 75 |
# File 'lib/compiler_error.rb', line 71 def initialize ast, expected_count super ast.position @expected_count = expected_count @actual_count = ast.params.length end |
Instance Method Details
#info ⇒ Object
77 78 79 |
# File 'lib/compiler_error.rb', line 77 def info "generic parameter count mismatch: expected #{@expected_count}, provided #{@actual_count}" end |