Maintenance of Ruby 2.0.0 will end on February 24, 2016. Read more

In Files

  • rexml/validation/relaxng.rb

Class/Module Index [+]



Public Instance Methods

expected() click to toggle source
               # File rexml/validation/relaxng.rb, line 308
def expected
  return [ @prior.expected, @events[0] ].flatten if @current == 0
  return [@events[@current]]
next( event ) click to toggle source
               # File rexml/validation/relaxng.rb, line 287
def next( event )
  expand_ref_in( @events, @current ) if @events[@current].class == Ref
  if ( @events[@current].matches?(event) )
    @current += 1
    if @events[@current].nil?
      @current = 0
      return self
    elsif @events[@current].kind_of? State
      @current += 1
      @events[@current-1].previous = self
      return @events[@current-1]
      return self
    @prior = @previous.pop
    return event ) if @current == 0
    return nil

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

blog comments powered by Disqus