123456789_123456789_123456789_123456789_123456789_

Exception: Gem::Package::FormatError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Error, ::Gem::Exception, ::Gem::Deprecate, RuntimeError
Instance Chain:
self, Error, ::Gem::Exception, RuntimeError
Inherits: Gem::Package::Error
Defined in: lib/rubygems/package.rb

Class Method Summary

::Gem::Deprecate - Extended

deprecate

Simple deprecation method that deprecates name by wrapping it up in a dummy method.

skip_during

Temporarily turn off warnings.

Instance Attribute Summary

Constructor Details

.new(message, source = nil) ⇒ FormatError

[ GitHub ]

  
# File 'lib/rubygems/package.rb', line 59

def initialize(message, source = nil)
  if source
    @path = source.path

    message = message + " in #{path}" if path
  end

  super message
end

Instance Attribute Details

#path (readonly)

[ GitHub ]

  
# File 'lib/rubygems/package.rb', line 57

attr_reader :path