Class: SimCtl::Xcode::Version
- Inherits:
-
Object
- Object
- SimCtl::Xcode::Version
- Defined in:
- lib/simctl/xcode/version.rb
Class Method Summary collapse
Class Method Details
.gte?(version) ⇒ Boolean
5 6 7 8 9 |
# File 'lib/simctl/xcode/version.rb', line 5 def gte?(version) @version ||= Gem::Version.new(`xcodebuild -version`.scan(/Xcode (\S+)/).flatten.first) @version >= Gem::Version.new(version) end |