Sha256: 1cbee6b8e3e7465a6e00ce1d2a89f4970dd4bcfcf8d1f92da341a3345cf0e872

Contents?: true

Size: 253 Bytes

Versions: 85

Compression:

Stored size: 253 Bytes

Contents

module Cairo
  class Region
    def each_rectangle
      return to_enum(:each_rectangle) unless block_given?
      num_rectangles.times.each do |i|
        yield(self[i])
      end
    end

    def rectangles
      each_rectangle.to_a
    end
  end
end

Version data entries

85 entries across 77 versions & 2 rubygems

Version Path
cairo-1.15.8-x64-mingw32 lib/cairo/region.rb
cairo-1.15.8 lib/cairo/region.rb
cairo-1.15.7-x64-mingw32 lib/cairo/region.rb
cairo-1.15.7-x86-mingw32 lib/cairo/region.rb
cairo-1.15.7 lib/cairo/region.rb
cairo-1.15.6-x86-mingw32 lib/cairo/region.rb
cairo-1.15.6-x64-mingw32 lib/cairo/region.rb
cairo-1.15.6 lib/cairo/region.rb
savant-echo-1.0.4 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/region.rb
savant-echo-1.0.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/region.rb
cairo-1.15.5-x64-mingw32 lib/cairo/region.rb
cairo-1.15.5-x86-mingw32 lib/cairo/region.rb
cairo-1.15.5 lib/cairo/region.rb
savant-echo-1.0.1 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/region.rb
savant-echo-1.0.1 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/region.rb
cairo-1.15.4-x86-mingw32 lib/cairo/region.rb
cairo-1.15.4-x64-mingw32 lib/cairo/region.rb
savant-echo-0.1.91 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/region.rb
savant-echo-0.1.91 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/region.rb
cairo-1.15.4 lib/cairo/region.rb