Class: Sikuli::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/sikuli/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.highlight_on_findObject

Returns the value of attribute highlight_on_find.



4
5
6
# File 'lib/sikuli/config.rb', line 4

def highlight_on_find
  @highlight_on_find
end

Class Method Details

.image_pathObject



6
7
8
# File 'lib/sikuli/config.rb', line 6

def image_path
  java.lang.System.getProperty("SIKULI_IMAGE_PATH")
end

.image_path=(path) ⇒ Object



10
11
12
# File 'lib/sikuli/config.rb', line 10

def image_path=(path)
  java.lang.System.setProperty("SIKULI_IMAGE_PATH", path)
end

.logging=(boolean) ⇒ Object



14
15
16
17
18
19
# File 'lib/sikuli/config.rb', line 14

def logging=(boolean)
  return unless [TrueClass, FalseClass].include? boolean.class
  org.sikuli.script::Settings.InfoLogs = boolean
  org.sikuli.script::Settings.ActionLogs = boolean
  org.sikuli.script::Settings.DebugLogs = boolean
end

.run(*args) ⇒ Object



21
22
23
24
25
# File 'lib/sikuli/config.rb', line 21

def run(*args)
  if block_given?
    yield self
  end
end