Method: REXML::Parsers::BaseParser#has_next?

Defined in:
lib/rexml/parsers/baseparser.rb

#has_next?Boolean

Returns true if there are more events. Synonymous with !empty?

Returns:

  • (Boolean)


153
154
155
# File 'lib/rexml/parsers/baseparser.rb', line 153

def has_next?
  return !(@source.empty? and @stack.empty?)
end