Sha256: 1d354eb46b016355027a8bede54b4a9584c1687b7491d91c522054fc9c244f57
Contents?: true
Size: 388 Bytes
Versions: 26
Compression:
Stored size: 388 Bytes
Contents
module Snapshot class Simulators def self.available_devices if not @result @result = [] `instruments -s`.split("\n").each do |current| # Example: "iPhone 5 (8.1 Simulator) [C49ECC4A-5A3D-44B6-B9BF-4E25BC326400]" @result << current.split(' [').first if current.include?"Simulator" end end return @result end end end
Version data entries
26 entries across 26 versions & 1 rubygems