Class: Gem::Validator::ErrorData

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubygems/validator.rb

Overview

Describes a problem with a file in a gem.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



41
42
43
# File 'lib/rubygems/validator.rb', line 41

def path
  @path
end

#problemObject

Returns the value of attribute problem

Returns:

  • (Object)

    the current value of problem



41
42
43
# File 'lib/rubygems/validator.rb', line 41

def problem
  @problem
end

Instance Method Details

#<=>(other) ⇒ Object

:nodoc:



42
43
44
45
46
# File 'lib/rubygems/validator.rb', line 42

def <=>(other) # :nodoc:
  return nil unless self.class === other

  [path, problem] <=> [other.path, other.problem]
end