Class: Rkremap::WinAttr

Inherits:
Object
  • Object
show all
Defined in:
lib/rkremap/winattr.rb

Overview

アプリの name, class, title を取得する

Class Method Summary collapse

Class Method Details

.for(win_system) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/rkremap/winattr.rb', line 8

def self.for(win_system)
  case win_system.to_s
  when 'x11'
    WinAttrX11.new
  when 'kde', 'kwin', 'kubuntu'
    WinAttrKDE.new
  else
    raise "unknown system: #{win_system}"
  end
end