Method: Bundler::CLI::Gem#initialize
- Defined in:
- lib/bundler/cli/gem.rb
#initialize(options, gem_name, thor) ⇒ Gem
Returns a new instance of Gem.
20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/bundler/cli/gem.rb', line 20 def initialize(, gem_name, thor) = @gem_name = resolve_name(gem_name) @thor = thor thor.behavior = :invoke thor.destination_root = nil @name = @gem_name @target = SharedHelpers.pwd.join(gem_name) validate_ext_name if [:ext] end |