class Fusuma::Plugin::Inputs::AppmatcherInput

Get active application's name

Attributes

pid[R]

Public Instance Methods

io() click to toggle source
# File lib/fusuma/plugin/inputs/appmatcher_input.rb, line 12
def io
  @backend ||= Appmatcher.backend_klass.new

  @pid ||= begin
             pid = @backend.watch_start
             # NOTE: Closing the parent process's pipe
             @backend.writer.close

             pid
           end

  @backend.reader
end