5 6 7 8 9
# File 'lib/lerna/display_enumerator.rb', line 5 def call(xrandr_output = `LC_ALL=C xrandr`) xrandr_output. scan(/^(?:[A-Z\-]+\d+) (?:dis)?connected/). map { |line| Display.parse(line) } end