Sha256: 20b94e14b018075970d91042e7ea32014b11ac77859d7f5797ae8263a7b7808a

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

require 'conquer/dzen/graphics/graphic'

module Conquer
  module Dzen
    module Graphics
      class Rectangle < Graphic
        attr_reader :width, :height

        def initialize(width, height)
          super()
          @width = width
          @height = height
          @template = '^r(%dx%d)'
          @template_args = [width, height]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
conquer-dzen-0.1.3 lib/conquer/dzen/graphics/rectangle.rb
conquer-dzen-0.1.2 lib/conquer/dzen/graphics/rectangle.rb
conquer-dzen-0.1.1 lib/conquer/dzen/graphics/rectangle.rb
conquer-dzen-0.1.0 lib/conquer/dzen/graphics/rectangle.rb