lib/run_loop/xcode.rb in run_loop-2.6.6 vs lib/run_loop/xcode.rb in run_loop-2.7.0

- old
+ new

@@ -24,10 +24,18 @@ # Returns debug String representation def inspect to_s end + # Returns a version instance for Xcode 9.4; used to check for the + # availability of features and paths to various items on the filesystem + # + # @return [RunLoop::Version] 9.4 + def v94 + fetch_version(:v94) + end + # Returns a version instance for Xcode 9.3; used to check for the # availability of features and paths to various items on the filesystem # # @return [RunLoop::Version] 9.3 def v93 @@ -175,9 +183,17 @@ # # @return [RunLoop::Version] 5.0 def v50 fetch_version(:v50) end + + # Is the active Xcode version 9.3 or above? + # + # @return [Boolean] `true` if the current Xcode version is >= 9.3 + def version_gte_94? + version >= v94 + end + # Is the active Xcode version 9.3 or above? # # @return [Boolean] `true` if the current Xcode version is >= 9.3 def version_gte_93? version >= v93