Sha256: ff692ae4456e82ac608f78990bfb5de2d058418b40cabcf696ad0f76ef4b4141

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

require_relative "element"

module Autocad
  class PViewport < Element
    def width
      @ole_obj.Width
    end

    def height
      @ole_obj.Height
    end

    def each
      return enum_for(:each) unless block_given?

      @ole_obj.each do |ole|
        yield app.wrap(ole)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
autocad-0.4.6 lib/autocad/pviewport.rb