Method: Bundler::PubGrub::StaticPackageSource#initialize

Defined in:
lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb

#initialize {|DSL.new(@packages, @root_deps)| ... } ⇒ StaticPackageSource

Returns a new instance of StaticPackageSource.

Yields:

  • (DSL.new(@packages, @root_deps))


33
34
35
36
37
38
39
40
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb', line 33

def initialize
  @root_deps = {}
  @packages = {}

  yield DSL.new(@packages, @root_deps)

  super()
end