Class: Pod::Podfile::TargetDefinition
- Inherits:
-
Object
- Object
- Pod::Podfile::TargetDefinition
- Defined in:
- lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb
Instance Attribute Summary collapse
-
#dynamic_wrapper ⇒ Object
Returns the value of attribute dynamic_wrapper.
Instance Method Summary collapse
Instance Attribute Details
#dynamic_wrapper ⇒ Object
Returns the value of attribute dynamic_wrapper.
20 21 22 |
# File 'lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb', line 20 def dynamic_wrapper @dynamic_wrapper end |
Instance Method Details
#original_use_frameworks! ⇒ Object
21 |
# File 'lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb', line 21 alias_method :original_use_frameworks!, :use_frameworks! |
#use_frameworks!(option = true) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/cocoapods-use-frameworks-dynamic-wrapper/cocoapods-use-frameworks-dynamic-wrapper.rb', line 22 def use_frameworks!(option = true) case option when true, false original_use_frameworks! option when Hash @dynamic_wrapper = option.delete(:dynamic_wrapper) if option[:dynamic_wrapper] && option[:linkage] != :static original_use_frameworks!(option.empty? ? true : option) end end |