Class: Pod::Podfile
- Inherits:
-
Object
- Object
- Pod::Podfile
- Defined in:
- lib/cocoapods-gd/podfile_env.rb
Constant Summary collapse
- GD_USE_BINARIES =
'use_binaries'- USE_SOURCE_CODE_SELECTOR =
'use_source_code'
Instance Method Summary collapse
- #get_use_binaries ⇒ Object
- #get_use_source_code_selector ⇒ Object
- #use_binaries!(flag = true) ⇒ Object
- #use_source_code_selector!(&block) ⇒ Object
Instance Method Details
#get_use_binaries ⇒ Object
12 13 14 |
# File 'lib/cocoapods-gd/podfile_env.rb', line 12 def get_use_binaries internal_hash[GD_USE_BINARIES] end |
#get_use_source_code_selector ⇒ Object
21 22 23 |
# File 'lib/cocoapods-gd/podfile_env.rb', line 21 def get_use_source_code_selector internal_hash[USE_SOURCE_CODE_SELECTOR] end |
#use_binaries!(flag = true) ⇒ Object
8 9 10 |
# File 'lib/cocoapods-gd/podfile_env.rb', line 8 def use_binaries!(flag = true) internal_hash[GD_USE_BINARIES] = flag end |
#use_source_code_selector!(&block) ⇒ Object
16 17 18 19 |
# File 'lib/cocoapods-gd/podfile_env.rb', line 16 def use_source_code_selector!(&block) raise Informative, '必须提供选择需要二进制组件的 block !' unless block_given? internal_hash[USE_SOURCE_CODE_SELECTOR] = block end |