Sha256: b8516b1e1c425452c040a235b7d843e523e7e2252c53a74b9cc32d529b9e8e1d

Contents?: true

Size: 372 Bytes

Versions: 4

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true
class Shoes
  module Mock
    class Image
      include Shoes::Mock::CommonMethods
      include Shoes::Mock::Clickable

      attr_accessor :left, :top

      def initialize(*_)
        # SWT backend sets a size, so mimic that in the mock
        super
        @dsl.width ||= 22
      end

      def update_image
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoes-core-4.0.0.pre12 lib/shoes/mock/image.rb
shoes-core-4.0.0.pre11 lib/shoes/mock/image.rb
shoes-core-4.0.0.pre10 lib/shoes/mock/image.rb
shoes-core-4.0.0.pre9 lib/shoes/mock/image.rb