class Xlocalize::Helper

Public Class Methods

xcode_at_least?(version) click to toggle source
# File lib/xlocalize/helper.rb, line 11
def self.xcode_at_least?(version)
  v = xcode_version
  Gem::Version.new(v) >= Gem::Version.new(version)
end
xcode_version() click to toggle source
# File lib/xlocalize/helper.rb, line 6
def self.xcode_version
  output = `xcodebuild -version`
  output.split("\n").first.split(' ')[1]
end