Sha256: 1d06cc8fbf01b5ee8b7cf38360a06c05f4cc175ed526b49feaa6edb7cad8ea0d
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
module Autocad class Enumerator include Enumerable attr_reader :app def initialize(ole, app) @ole_obj = ole @app = app end def each return enum_for(:each) unless block_given? @ole_obj.each do |ole| yield app.wrap(ole) end end def reset @ole_obj.reset end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autocad-0.4.6 | lib/autocad/enumerator.rb |