Class: Gem::SpecFetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/gauntlet.rb

Overview

Extensions and Overrides

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fetcher = Gem::RemoteFetcher.fetcher) ⇒ SpecFetcher

Returns a new instance of SpecFetcher.



301
302
303
304
305
# File 'lib/gauntlet.rb', line 301

def initialize fetcher = Gem::RemoteFetcher.fetcher
  old_initialize

  self.fetcher = fetcher
end

Instance Attribute Details

#fetcher=(value) ⇒ Object (writeonly)

Sets the attribute fetcher

Parameters:

  • value

    the value to set the attribute fetcher to.



297
298
299
# File 'lib/gauntlet.rb', line 297

def fetcher=(value)
  @fetcher = value
end

Instance Method Details

#old_initializeObject



299
# File 'lib/gauntlet.rb', line 299

alias :old_initialize :initialize