Skip to content

Commit f64e2e4

Browse files
authored
Fix newline in doc (#850)
* tweak new line in scroll doc * tweak rubocop
1 parent a3b3073 commit f64e2e4

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lib/appium_lib/ios/xcuitest/command/gestures.rb

+3-6
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ def swipe(direction:, element: nil)
2828
# ```ruby
2929
# scroll direction: "down"
3030
# ```
31-
def scroll(direction:, # rubocop:disable Metrics/ParameterLists
32-
distance: nil,
33-
name: nil,
34-
element: nil,
35-
to_visible: nil,
36-
predicate_string: nil)
31+
# rubocop:disable Metrics/ParameterLists
32+
def scroll(direction:, distance: nil, name: nil, element: nil, to_visible: nil, predicate_string: nil)
3733
return 'Set "up", "down", "left" or "right" for :direction' unless %w(up down left right).include?(direction)
3834

3935
args = { direction: direction }
@@ -45,6 +41,7 @@ def scroll(direction:, # rubocop:disable Metrics/ParameterLists
4541

4642
@driver.execute_script 'mobile: scroll', args
4743
end
44+
# rubocop:enable Metrics/ParameterLists
4845

4946
# @param scale [scale] X tap coordinate of type float. Mandatory parameter
5047
# @param velocity [float] Y tap coordinate of type float. Mandatory parameter

0 commit comments

Comments
 (0)