Quiet error handler
Verbose error handler
# File lib/libxml/error.rb, line 59 def code_to_s const_map = Hash.new codes = self.class.constants - self.class.constants.grep(/XML_FROM/) - ["XML_ERR_NONE", "XML_ERR_WARNING", "XML_ERR_ERROR", "XML_ERR_FATAL"] codes.each do |code| human_name = code.gsub(/XML_ERR_/, '') const_map[self.class.const_get(code)] = human_name end const_map[self.code] end
# File lib/libxml/error.rb, line 48 def domain_to_s const_map = Hash.new domains = self.class.constants.grep(/XML_FROM/) domains.each do |domain| human_name = domain.gsub(/XML_FROM_/, '') const_map[self.class.const_get(domain)] = human_name end const_map[self.domain] end
# File lib/libxml/error.rb, line 19 def eql?(other) self.code == other.code and self.domain == other.domain and self.message == other.message and self.level == other.level and self.file == other.file and self.line == other.line and self.str1 == other.str1 and self.str2 == other.str2 and self.str3 == other.str3 and self.int1 == other.int1 and self.int2 == other.int2 and self.ctxt == other.ctxt and self.node == other.node end
Generated with the Darkfish Rdoc Generator 2.