Method: Pod::Podfile::TargetDefinition#matches_platform?

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

#matches_platform?(target_definition) ⇒ Boolean

Returns whether this target definition matches the platform of target_definition.

Parameters:

  • target_definition (TargetDefinition, Nil)

    the target definition to check for platform compatibility.

Returns:

  • (Boolean)

    whether this target definition matches the platform of target_definition.



231
232
233
234
235
# File 'lib/cocoapods-core/podfile/target_definition.rb', line 231

def matches_platform?(target_definition)
  return false unless target_definition
  return true if target_definition.platform == platform
  !target_definition.platform && target_definition.abstract?
end