Class: Wiris::XmlIterator
- Inherits:
-
Enumerator
- Object
- Enumerator
- Wiris::XmlIterator
- Defined in:
- lib/src-generic/Xml.rb
Instance Method Summary collapse
- #hasNext ⇒ Object
-
#initialize(enum) ⇒ XmlIterator
constructor
A new instance of XmlIterator.
- #next ⇒ Object
Constructor Details
#initialize(enum) ⇒ XmlIterator
Returns a new instance of XmlIterator.
183 184 185 |
# File 'lib/src-generic/Xml.rb', line 183 def initialize(enum) @enumeration = enum.map end |
Instance Method Details
#hasNext ⇒ Object
191 192 193 194 195 196 197 198 |
# File 'lib/src-generic/Xml.rb', line 191 def hasNext() begin @enumeration.peek return true rescue StopIteration return false end end |