Sha256: c62fc1624ef9e281076eac28a0bbb9e6b061d7f7aede3101c334c30250ae9033

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

module Druid
  module Elements
    class Canvas < Element
      
      #
      # return the width of the canvas
      #
      def width
        attribute(:width).to_i
      end

      #
      # return the height of the canvas
      #
      def height
        attribute(:height).to_i
      end
    end

    Druid::Elements.type_to_class[:canvas] = Druid::Elements::Canvas
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.2.0 lib/druid/elements/canvas.rb
druid-ts-1.1.8 lib/druid/elements/canvas.rb