Class: DeterminesResolution
- Inherits:
-
Object
- Object
- DeterminesResolution
- Defined in:
- lib/openplay/determines_resolution.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
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 |