Exception: Gem::Package::FormatError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubygems/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, path = nil) ⇒ FormatError

Returns a new instance of FormatError.



19
20
21
22
23
24
25
# File 'lib/rubygems/package.rb', line 19

def initialize message, path = nil
  @path = path

  message << " in #{path}" if path

  super message
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path



17
18
19
# File 'lib/rubygems/package.rb', line 17

def path
  @path
end