Sha256: 2cb69048e6cb924ae30453a9a0caf16c98f7c0ad2e8f0fee57deb02eb9a0febe
Contents?: true
Size: 668 Bytes
Versions: 19
Compression:
Stored size: 668 Bytes
Contents
module Nokogiri module XML ### # This class provides information about XML SyntaxErrors. These # exceptions are typically stored on Nokogiri::XML::Document#errors. class SyntaxError < ::Nokogiri::SyntaxError ### # return true if this is a non error def none? level == 0 end ### # return true if this is a warning def warning? level == 1 end ### # return true if this is an error def error? level == 2 end ### # return true if this error is fatal def fatal? level == 3 end alias :to_s :message end end end
Version data entries
19 entries across 19 versions & 2 rubygems