Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more
# File rexml/validation/validation.rb, line 141 def ==( other ) return false unless other.kind_of? Event @event_type == other.event_type and @event_arg == other.event_arg end
# File rexml/validation/validation.rb, line 150 def inspect "#{@event_type.inspect}( #@event_arg )" end
# File rexml/validation/validation.rb, line 96 def matches?( event ) #puts "#@event_type =? #{event[0]} && #@event_arg =? #{event[1]} " return false unless event[0] == @event_type case event[0] when nil return true when :start_element return true if event[1] == @event_arg when :end_element return true when :start_attribute return true if event[1] == @event_arg when :end_attribute return true when :end_document return true when :text return (@event_arg.nil? or @event_arg == event[1]) when :processing_instruction false when :xmldecl false when :start_doctype false when :end_doctype false when :externalentity false when :elementdecl false when :entity false when :attlistdecl false when :notationdecl false when :end_doctype false else false end end
Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.
If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.