Class: Bundler::Resolver::Root

Inherits:
Package
  • Object
show all
Defined in:
lib/bundler/resolver/root.rb

Overview

Represents the Gemfile from the resolver’s perspective. It’s the root package and Gemfile entries depend on it.

Instance Attribute Summary

Attributes inherited from Package

#dependency, #locked_version, #name, #platforms

Instance Method Summary collapse

Methods inherited from Package

#==, #consider_prereleases!, #current_platform?, #force_ruby_platform?, #hash, #ignores_prereleases?, #platform_specs, #prerelease_specified?, #to_s, #top_level?, #unlock?

Constructor Details

#initialize(name) ⇒ Root

Returns a new instance of Root.



12
13
14
# File 'lib/bundler/resolver/root.rb', line 12

def initialize(name)
  @name = name
end

Instance Method Details

#meta?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/bundler/resolver/root.rb', line 16

def meta?
  true
end

#root?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/bundler/resolver/root.rb', line 20

def root?
  true
end