Sha256: f98fdff7648b9bb15eab00277b716b92f3bfd00938704479f647486aaecbd14f

Contents?: true

Size: 764 Bytes

Versions: 18

Compression:

Stored size: 764 Bytes

Contents

module Appium
  module Device
    extend Forwardable

    class << self
      def extended(_mod)
        add_touch_actions
      end

      private

      def add_touch_actions
        actions = Appium::TouchAction::COMPLEX_ACTIONS
        actions.each do |method|
          delegate_from_appium_driver(method, Appium::TouchAction)
        end

        # To keep compatibility
        # pinch and zoom are defined in Appium::MultiTouch.
        delegate_from_appium_driver(:pinch, Appium::MultiTouch)
        delegate_from_appium_driver(:zoom, Appium::MultiTouch)
      end

      def delegate_from_appium_driver(method, delegation_target)
        def_delegator delegation_target, method
      end
    end # class << self
  end # module Device
end # module Appium

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
appium_lib-10.2.0 lib/appium_lib/common/device.rb
appium_lib-10.1.0 lib/appium_lib/common/device.rb
appium_lib-10.0.0 lib/appium_lib/common/device.rb
appium_lib-9.18.0 lib/appium_lib/common/device.rb
appium_lib-9.17.0 lib/appium_lib/common/device.rb
appium_lib-9.16.1 lib/appium_lib/common/device.rb
appium_lib-9.16.0 lib/appium_lib/common/device.rb
appium_lib-9.15.2 lib/appium_lib/common/device.rb
appium_lib-9.15.1 lib/appium_lib/common/device.rb
appium_lib-9.15.0 lib/appium_lib/common/device.rb
appium_lib-9.14.3 lib/appium_lib/common/device.rb
appium_lib-9.14.2 lib/appium_lib/common/device.rb
appium_lib-9.14.1 lib/appium_lib/common/device.rb
appium_lib-9.14.0 lib/appium_lib/common/device.rb
appium_lib-9.13.0 lib/appium_lib/common/device.rb
appium_lib-9.12.1 lib/appium_lib/common/device.rb
appium_lib-9.12.0 lib/appium_lib/common/device.rb
appium_lib-9.11.1 lib/appium_lib/common/device.rb