Sha256: 20cf3aa358f391a32b741b8083d6869434503b923cf04d8b17571a1eebfcd5de

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

module Mohawk
  module Accessors
    class Spinner
      attr_reader :view

      def initialize(adapter, locator)
        @view = adapter.window.spinner(locator)
      end

      def value
        @view.value
      end

      def value=(value)
        @view.set value
      end

      def increment
        @view.increment
      end

      def decrement
        @view.decrement
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mohawk-0.1.4 lib/mohawk/accessors/spinner.rb
mohawk-0.1.0 lib/mohawk/accessors/spinner.rb
mohawk-0.0.9 lib/mohawk/accessors/spinner.rb
mohawk-0.0.8 lib/mohawk/accessors/spinner.rb