Class: Boaw
- Inherits:
-
Object
- Object
- Boaw
- Defined in:
- lib/boaw.rb,
lib/boaw/version.rb
Overview
The main class from which work with the program begins
Constant Summary collapse
- VERSION =
'0.1.3'
Instance Method Summary collapse
-
#initialize ⇒ Boaw
constructor
A new instance of Boaw.
-
#left_click(position) ⇒ Object
clicks with the left mouse button, takes the position coordinates as input.
-
#position ⇒ Object
method returns the current cursor position { :x => 1, :y =>2 }.
-
#right_click(position) ⇒ Object
clicks with the right mouse button, takes the position coordinates as input.
Constructor Details
Instance Method Details
#left_click(position) ⇒ Object
clicks with the left mouse button, takes the position coordinates as input
19 20 21 |
# File 'lib/boaw.rb', line 19 def left_click(position) adapter.left_click(position) end |
#position ⇒ Object
method returns the current cursor position { :x => 1, :y =>2 }
13 14 15 |
# File 'lib/boaw.rb', line 13 def position adapter.position end |
#right_click(position) ⇒ Object
clicks with the right mouse button, takes the position coordinates as input
25 26 27 |
# File 'lib/boaw.rb', line 25 def right_click(position) adapter.right_click(position) end |