Class: Boaw

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeBoaw

Returns a new instance of Boaw.



7
8
9
# File 'lib/boaw.rb', line 7

def initialize
  @adapter = Xdotool::Adapter.new
end

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

#positionObject

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