Method: Pod::Specification#consumer

Defined in:
lib/cocoapods-core/specification.rb

#consumer(platform) ⇒ Specification::Consumer

Returns a consumer to access the multi-platform attributes.

Parameters:

  • platform (String, Symbol, Platform)

    the platform of the consumer

Returns:



451
452
453
454
# File 'lib/cocoapods-core/specification.rb', line 451

def consumer(platform)
  platform = platform.to_sym
  @consumers[platform] ||= Consumer.new(self, platform)
end