class Microstation::Enumerator

Attributes

app[R]

Public Class Methods

new(ole,app) click to toggle source
# File lib/microstation/enumerator.rb, line 11
def initialize(ole,app)
  @ole_obj = ole
  @app = app
end

Public Instance Methods

each() { |wrap| ... } click to toggle source
# File lib/microstation/enumerator.rb, line 16
def each
  return enum_for(:each) unless block_given?
  while @ole_obj.MoveNext
    item = @ole_obj.Current
    yield Microstation::Wrap.wrap(item,app)
  end
end
reset() click to toggle source
# File lib/microstation/enumerator.rb, line 24
def reset
  @ole_obj.reset
end