Class: Jade::Parsing::EOFError
- Defined in:
- lib/jade/parsing/error.rb
Instance Attribute Summary
Attributes inherited from Error
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(entry:, span:, expected:, actual: nil, committed: false, context: []) ⇒ EOFError
constructor
A new instance of EOFError.
- #message ⇒ Object
Methods inherited from Error
#commit, #committed?, #with_context
Methods inherited from Error
#candidates, #label, #notes, #queried_name, #to_diagnostic
Constructor Details
#initialize(entry:, span:, expected:, actual: nil, committed: false, context: []) ⇒ EOFError
Returns a new instance of EOFError.
47 48 49 |
# File 'lib/jade/parsing/error.rb', line 47 def initialize(entry:, span:, expected:, actual: nil, committed: false, context: []) super end |
Instance Method Details
#message ⇒ Object
51 52 53 |
# File 'lib/jade/parsing/error.rb', line 51 def "#{context_prefix}Unexpected end of input, expected #{expected}" end |