-----------------------------------------------------------------------#
Object
type
message
initialize
platforms
to_s
type #=> Symbol
Symbol
The type of result.
message #=> String
String
The message associated with result.
initialize(type, message) #=> Result
Symbol
type
@see type
String
message
@see message
Result
A new instance of Result
382 def initialize(type, message)
383 @type = type
384 @message = message
385 @platforms = []
386 end
platforms #=> Array<Platform>
Array
The platforms where this result was generated.
to_s #=> String
String
A string representation suitable for UI output.
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