Method: Pod::Podfile::TargetDefinition#root?

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

#root?Boolean

Returns Whether the target definition is root.

Returns:

  • (Boolean)

    Whether the target definition is root.



46
47
48
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 46

def root?
  parent.is_a?(Podfile) || parent.nil?
end