Sha256: e9f311bd45d478c0db43576269d1b71e2a2f36f01ad291105133ac5997da8d7a

Contents?: true

Size: 401 Bytes

Versions: 37

Compression:

Stored size: 401 Bytes

Contents

module PageObject
  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
    ::PageObject::Elements.type_to_class[:canvas] = ::PageObject::Elements::Canvas
  end
end

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
page-object-1.1.1 lib/page-object/elements/canvas.rb
page_object-1.1.3 lib/page-object/elements/canvas.rb
page_object-1.1.2 lib/page-object/elements/canvas.rb
page_object-1.1.1 lib/page-object/elements/canvas.rb
page-object-1.1.0 lib/page-object/elements/canvas.rb
page-object-1.0.3 lib/page-object/elements/canvas.rb
meeane-page-object-0.1.11 lib/page-object/elements/canvas.rb
page-object-1.0.2 lib/page-object/elements/canvas.rb
page-object-1.0.1 lib/page-object/elements/canvas.rb
page-object-1.0 lib/page-object/elements/canvas.rb
page-object-0.9.8 lib/page-object/elements/canvas.rb
page-object-0.9.7 lib/page-object/elements/canvas.rb
page-object-0.9.6 lib/page-object/elements/canvas.rb
page-object-0.9.5 lib/page-object/elements/canvas.rb
page-object-0.9.4 lib/page-object/elements/canvas.rb
page-object-0.9.3 lib/page-object/elements/canvas.rb
page-object-0.9.2 lib/page-object/elements/canvas.rb
page-object-0.9.1 lib/page-object/elements/canvas.rb
page-object-0.9.0 lib/page-object/elements/canvas.rb
page-object-0.8.10 lib/page-object/elements/canvas.rb