class Lerna::DisplayEnumerator

Public Instance Methods

call(xrandr_output = `LC_ALL=C xrandr`) click to toggle source
# 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