lib/run_loop/xcode.rb in run_loop-4.1.0 vs lib/run_loop/xcode.rb in run_loop-4.2.0

- old
+ new

@@ -24,10 +24,18 @@ # Returns debug String representation def inspect to_s end + # Returns a version instance for Xcode 10.2; used to check for the + # availability of features and paths to various items on the filesystem + # + # @return [RunLoop::Version] 10.2 + def v102 + fetch_version(:v102) + end + # Returns a version instance for Xcode 10.0; used to check for the # availability of features and paths to various items on the filesystem # # @return [RunLoop::Version] 10.0 def v100 @@ -104,9 +112,16 @@ # @return [RunLoop::Version] 8.0 def v80 fetch_version(:v80) end + # Is the active Xcode version 10.2 or above? + # + # @return [Boolean] `true` if the current Xcode version is >= 10.2 + def version_gte_102? + version >= v102 + end + # Is the active Xcode version 10.0 or above? # # @return [Boolean] `true` if the current Xcode version is >= 10.0 def version_gte_100? version >= v100