Class: Pod::Specification
- Inherits:
-
Object
- Object
- Pod::Specification
- Defined in:
- lib/cocoapods-spm/def/spec.rb
Instance Method Summary collapse
- #spm_dependencies ⇒ Object
- #spm_dependency(name, options = {}) ⇒ Object
- #with {|spec| ... } ⇒ Object
Instance Method Details
#spm_dependencies ⇒ Object
6 7 8 |
# File 'lib/cocoapods-spm/def/spec.rb', line 6 def spm_dependencies @spm_dependencies ||= [] end |
#spm_dependency(name, options = {}) ⇒ Object
10 11 12 |
# File 'lib/cocoapods-spm/def/spec.rb', line 10 def spm_dependency(name, = {}) spm_dependencies << SPM::Dependency.new(name, ) end |
#with {|spec| ... } ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cocoapods-spm/def/spec.rb', line 14 def with spec = Pod::Spec.new( parent, name, test_specification, app_specification: app_specification ) spec.attributes_hash = attributes_hash.dup yield spec if block_given? spec end |