class Wiris::Iterator
Public Class Methods
new(enum)
click to toggle source
# File lib/src-generic/Iterator.rb, line 4 def initialize(enum) @enumeration = enum.map end
Public Instance Methods
hasNext()
click to toggle source
# File lib/src-generic/Iterator.rb, line 12 def hasNext() begin @enumeration.peek return true rescue StopIteration return false end end
next()
click to toggle source
# File lib/src-generic/Iterator.rb, line 8 def next @enumeration.next end