lib/run_loop/xcode.rb in run_loop-2.4.1 vs lib/run_loop/xcode.rb in run_loop-2.5.0
- old
+ new
@@ -24,19 +24,27 @@
# Returns debug String representation
def inspect
to_s
end
- # Returns a version instance for Xcode 8.3 ; used to check for the
+ # Returns a version instance for Xcode 9.0; used to check for the
# availability of features and paths to various items on the filesystem
#
+ # @return [RunLoop::Version] 9.0
+ def v90
+ fetch_version(:v90)
+ end
+
+ # Returns a version instance for Xcode 8.3; used to check for the
+ # availability of features and paths to various items on the filesystem
+ #
# @return [RunLoop::Version] 8.3
def v83
fetch_version(:v83)
end
- # Returns a version instance for Xcode 8.2 ; used to check for the
+ # Returns a version instance for Xcode 8.2; used to check for the
# availability of features and paths to various items on the filesystem
#
# @return [RunLoop::Version] 8.2
def v82
fetch_version(:v82)
@@ -142,9 +150,16 @@
# availability of features and paths to various items on the filesystem.
#
# @return [RunLoop::Version] 5.0
def v50
fetch_version(:v50)
+ end
+
+ # Is the active Xcode version 9.0 or above?
+ #
+ # @return [Boolean] `true` if the current Xcode version is >= 9.0
+ def version_gte_90?
+ version >= v90
end
# Is the active Xcode version 8.3 or above?
#
# @return [Boolean] `true` if the current Xcode version is >= 8.3