Class: Rails::GemBuilder

Inherits:
Gem::Installer
  • Object
show all
Defined in:
lib/rails/gem_builder.rb

Overview

this class hijacks the functionality of Gem::Installer by overloading its initializer to only provide the information needed by Gem::Installer#build_extensions (which happens to be what we have)

Instance Method Summary collapse

Constructor Details

#initialize(spec, gem_dir) ⇒ GemBuilder

Returns a new instance of GemBuilder.



11
12
13
14
# File 'lib/rails/gem_builder.rb', line 11

def initialize(spec, gem_dir)
  @spec    = spec
  @gem_dir = gem_dir
end

Instance Method Details

#say(message) ⇒ Object

silence the underlying builder



17
18
# File 'lib/rails/gem_builder.rb', line 17

def say(message)
end