Class: DeterminesResolution

Inherits:
Object
  • Object
show all
Defined in:
lib/openplay/determines_resolution.rb

Instance Method Summary collapse

Instance Method Details

#getObject



2
3
4
5
# File 'lib/openplay/determines_resolution.rb', line 2

def get
  x, y = `xrandr`.scan(/current (\d+) x (\d+)/).flatten
  "#{x}x#{y}"
end