
module Beaglebone
  module GPIO
    def self.list
      `ls /sys/class/gpio/`
    end
  end
end


module Beaglebone
  module GPIO
    def self.list
      `ls /sys/class/gpio/`.split('\n')
    end
  end
end

Convert list string to array
Convert list string to array
