Sha256: fb57d4d675580e9221f4425437375ddec7a1f7c07755e96120f50d2df485143e

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 Bytes

Contents

require 'cocoapods'

module Pod
  class Podfile
    GD_USE_BINARIES = 'use_binaries'
    USE_SOURCE_CODE_SELECTOR = 'use_source_code'

  	def use_binaries!(flag = true)
  		internal_hash[GD_USE_BINARIES] = flag
    end

    def get_use_binaries
      internal_hash[GD_USE_BINARIES]
    end

    def use_source_code_selector!(&block)
      raise Informative, '必须提供选择需要二进制组件的 block !' unless block_given?
      internal_hash[USE_SOURCE_CODE_SELECTOR] = block
    end

    def get_use_source_code_selector
      internal_hash[USE_SOURCE_CODE_SELECTOR]
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-gd-0.0.3 lib/cocoapods-gd/podfile_env.rb
cocoapods-gd-0.0.2 lib/cocoapods-gd/podfile_env.rb