>Result

Result

-----------------------------------------------------------------------#

Inherits from:

Object

Root spec validation helpers

type

message

initialize

platforms

to_s

typeattribute reader

Signature

type #=> Symbol 

Returns

Symbol The type of result.

Source Files

lib/cocoapods-core/specification/linter.rb:373

spec/specification/linter_spec.rb

messageattribute reader

Signature

message #=> String 

Returns

String The message associated with result.

Source Files

lib/cocoapods-core/specification/linter.rb:377

spec/specification/linter_spec.rb

initialize

Signature

initialize(type, message) #=> Result 

Parameters

Symbol type

@see type

String message

@see message

Returns

Result A new instance of Result

Source

382 def initialize(type, message)
383   @type    = type
384   @message = message
385   @platforms = []
386 end

Source Files

lib/cocoapods-core/specification/linter.rb:382

spec/specification/linter_spec.rb

platformsattribute reader

Signature

platforms #=> Array<Platform> 

Returns

Array

The platforms where this result was generated.

Source Files

lib/cocoapods-core/specification/linter.rb:391

spec/specification/linter_spec.rb

to_s

Signature

to_s #=> String 

Returns

String A string representation suitable for UI output.

Source

395 def to_s
396   r = "[#{type.to_s.upcase}] #{message}"
397   if platforms != Specification::PLATFORMS
398     platforms_names = platforms.uniq.map { |p| Platform.string_name(p) }
399     r << " [#{platforms_names * ' - '}]" unless platforms.empty?
400   end
401   r
402 end

Source Files

lib/cocoapods-core/specification/linter.rb:395

spec/specification/linter_spec.rb