Module: Cukunity::KeyboardInputMethods

Includes:
Utils
Included in:
Android::KeyboardInput, IOS::KeyboardInput
Defined in:
lib/cukunity/keyboard_input_methods.rb

Instance Method Summary collapse

Methods included from Utils

#check_timeout, #merge_options, #restrict_options, #to_options, #wait_connectivity

Instance Method Details

#open(options = {}) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



5
6
7
8
9
10
11
12
# File 'lib/cukunity/keyboard_input_methods.rb', line 5

def open(options = {})
  options = merge_options(options, { :clear => false, :close => true })
  platform_open_keyboard(restrict_options(options, :clear))
  yield self
  if options[:close]
    close_keyboard
  end
end