Class: Jade::Parsing::EOFError

Inherits:
Error show all
Defined in:
lib/jade/parsing/error.rb

Instance Attribute Summary

Attributes inherited from Error

#actual, #context, #expected

Attributes inherited from Error

#entry, #span

Instance Method Summary collapse

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

#messageObject



51
52
53
# File 'lib/jade/parsing/error.rb', line 51

def message
  "#{context_prefix}Unexpected end of input, expected #{expected}"
end