Class: Xlocalize::Helper
- Inherits:
-
Object
- Object
- Xlocalize::Helper
- Defined in:
- lib/xlocalize/helper.rb
Class Method Summary collapse
Class Method Details
.xcode_at_least?(version) ⇒ Boolean
11 12 13 14 |
# 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 ⇒ Object
6 7 8 9 |
# File 'lib/xlocalize/helper.rb', line 6 def self.xcode_version output = `xcodebuild -version` output.split("\n").first.split(' ')[1] end |