Class: GCPT::Helper
- Inherits:
-
Object
- Object
- GCPT::Helper
- Defined in:
- lib/gcpt/utils/helper.rb
Class Method Summary collapse
- .read_plist_from_path(path) ⇒ Object
-
.split_build_setting_array_to_string(string) ⇒ Object
from xcodeproj-1.21.0/lib/xcodeproj/project/object/build_configuration.rb.
Class Method Details
.read_plist_from_path(path) ⇒ Object
11 12 13 14 |
# File 'lib/gcpt/utils/helper.rb', line 11 def self.read_plist_from_path(path) contents = File.read(path) CFPropertyList.native_types(CFPropertyList::List.new(:data => contents).value) end |
.split_build_setting_array_to_string(string) ⇒ Object
from xcodeproj-1.21.0/lib/xcodeproj/project/object/build_configuration.rb
6 7 8 9 |
# File 'lib/gcpt/utils/helper.rb', line 6 def self.split_build_setting_array_to_string(string) regexp = / *((['"]?).*?[^\\]\2)(?=( |\z))/ string.scan(regexp).map(&:first) end |