Method: REXML::Validation::Choice#expected

Defined in:
lib/rexml/validation/relaxng.rb

#expectedObject



403
404
405
406
407
408
409
410
411
412
# File 'lib/rexml/validation/relaxng.rb', line 403

def expected
  return [@events[@current]] if @events.size > 0
  return @choices.collect do |x|
    if x[0].kind_of? State
      x[0].expected
    else
      x[0]
    end
  end.flatten
end