class Mynu::Support::System

Constants

CommandDown
ControlDown
OptionDown
ShiftDown

Attributes

system[RW]

Public Class Methods

new() click to toggle source
# File lib/mynu/support/system.rb, line 13
def initialize
  self.system = SBApplication.applicationWithBundleIdentifier("com.apple.SystemEvents")
end

Public Instance Methods

keystroke(keys, using=0) click to toggle source

wrapping a native selector

# File lib/mynu/support/system.rb, line 18
def keystroke(keys, using=0)
  @system.send(:"keystroke:using:", keys, using)
end
method_missing(method, *args) click to toggle source
# File lib/mynu/support/system.rb, line 22
def method_missing(method, *args)
  args.empty? ? @system.send(method) : @system.send(method, args)
end