Method: Pod::Specification::Set::Presenter#platform

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

#platformString

Returns the platforms supported by the Pod.

Examples:


"iOS"
"iOS - OS X"

Returns:

  • (String)

    the platforms supported by the Pod.



150
151
152
153
154
155
# File 'lib/cocoapods-core/specification/set/presenter.rb', line 150

def platform
  sorted_platforms = spec.available_platforms.sort do |a, b|
    a.to_s.downcase <=> b.to_s.downcase
  end
  sorted_platforms.join(' - ')
end