Sha256: fb5473cf8fca02d62763209a1d75e93b51aa3a07570c54223c66fdfc88639cfd
Contents?: true
Size: 399 Bytes
Versions: 18
Compression:
Stored size: 399 Bytes
Contents
module CustomErrors class ParseError < StandardError def initialize(msg, path = nil) super(format_msg(msg, path).squeeze(' ')) end private def format_msg(msg, path) if path.nil? %(There was an error while parsing a file: #{msg}) else %(There was an error while parsing a file: #{path} #{msg}) end end end end
Version data entries
18 entries across 18 versions & 1 rubygems