Sha256: a30cabe78e8843a0767d89d275789b3b20eeb233cd1140c971a3a967ad7c4a02
Contents?: true
Size: 285 Bytes
Versions: 2
Compression:
Stored size: 285 Bytes
Contents
module Schneiderlein class ExtractREXMLErrorMessage < Struct.new(:exception) def to_s sanitizer(exception.message) end private def sanitizer(str) str.to_s.gsub!('#<REXML::ParseException: ', '').to_s[0..str.to_s.index('Last').to_i-2] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
schneiderlein-1.2.0 | lib/schneiderlein/extract_rexml_error_message.rb |
schneiderlein-1.1.0 | lib/schneiderlein/extract_rexml_error_message.rb |