Method: Pod::Podfile::DSL#inherit!

Defined in:
lib/cocoapods-core/podfile/dsl.rb

#inherit!(inheritance) ⇒ void

This method returns an undefined value.

Sets the inheritance mode for the current target.

Examples:

Inheriting only search paths


target 'App' do
  target 'AppTests' do
    inherit! :search_paths
  end
end

Parameters:

  • inheritance (Symbol)

    the inheritance mode to set.

    **Available Modes:** + ‘:complete` The target inherits all behaviour from the parent. + `:none` The target inherits none of the behaviour from the parent. + `:search_paths` The target inherits the search paths of the parent only.


555
556
557
# File 'lib/cocoapods-core/podfile/dsl.rb', line 555

def inherit!(inheritance)
  current_target_definition.inheritance = inheritance
end