add_event_to_arry( arry, evt ) protected

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rexml/validation/relaxng.rb, line 420
      def add_event_to_arry( arry, evt )
        if evt.kind_of? State or evt.class == Ref
          arry << [evt]
        elsif evt[0] == :text
         if arry[-1] and
            arry[-1][-1].kind_of?( Event ) and
            arry[-1][-1].event_type == :text and @value

            arry[-1][-1].event_arg = evt[1]
            @value = false
         end
        else
          arry << [] if evt[0] == :start_element
          arry[-1] << generate_event( evt )
        end
      end
Register or log in to add new notes.