summaryrefslogtreecommitdiff
path: root/lib/bundler/resolver/root.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/resolver/root.rb')
-rw-r--r--lib/bundler/resolver/root.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/bundler/resolver/root.rb b/lib/bundler/resolver/root.rb
new file mode 100644
index 0000000000..e5eb634fb8
--- /dev/null
+++ b/lib/bundler/resolver/root.rb
@@ -0,0 +1,25 @@
+# frozen_string_literal: true
+
+require_relative "package"
+
+module Bundler
+ class Resolver
+ #
+ # Represents the Gemfile from the resolver's perspective. It's the root
+ # package and Gemfile entries depend on it.
+ #
+ class Root < Package
+ def initialize(name)
+ @name = name
+ end
+
+ def meta?
+ true
+ end
+
+ def root?
+ true
+ end
+ end
+ end
+end