class NestedText::Errors::ParseLineTypeNotExpectedError
Public Class Methods
new(line, type_exps, type_act)
click to toggle source
Calls superclass method
NestedText::Errors::ParseError::new
# File lib/nestedtext/errors_internal.rb, line 152 def initialize(line, type_exps, type_act) super(line, line.indentation, "The current line was detected to be #{type_act}, "\ "but we expected to see any of [#{type_exps.join(', ')}] here.") end