Sha256: 5a968e4b423b085c534907535345b249dc15672c0aabf3d0e31f90c98fdcce2f
Contents?: true
Size: 555 Bytes
Versions: 103
Compression:
Stored size: 555 Bytes
Contents
require 'psych/exception' module Psych class SyntaxError < Psych::Exception attr_reader :file, :line, :column, :offset, :problem, :context def initialize file, line, col, offset, problem, context err = [problem, context].compact.join ' ' filename = file || '<unknown>' message = "(%s): %s at line %d column %d" % [filename, err, line, col] @file = file @line = line @column = col @offset = offset @problem = problem @context = context super(message) end end end
Version data entries
103 entries across 75 versions & 6 rubygems