| Class | REXML::Validation::Event |
| In: |
rexml/validation/validation.rb
|
| Parent: | Object |
| event_arg | [RW] | |
| event_type | [R] |
# File rexml/validation/validation.rb, line 80 def initialize(event_type, event_arg=nil ) @event_type = event_type @event_arg = event_arg end
# 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]) ?? else false end end
ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.
Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.
For more information on the Ruby programming language, visit ruby-lang.org.
Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.