Method: Pod::Specification::Linter::Results::Result#to_s

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

#to_sString

Returns a string representation suitable for UI output.

Returns:

  • (String)

    a string representation suitable for UI output.



43
44
45
46
47
48
49
50
51
52
# File 'lib/cocoapods-core/specification/linter/result.rb', line 43

def to_s
  r = "[#{type.to_s.upcase}] [#{attribute_name}] #{message}"
  if platforms != Specification::PLATFORMS
    platforms_names = platforms.uniq.map do |p|
      Platform.string_name(p)
    end
    r << " [#{platforms_names * ' - '}]" unless platforms.empty?
  end
  r
end