diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb index cb52bda57b29a4..306733c1d7f02b 100644 --- a/lib/rubygems/version.rb +++ b/lib/rubygems/version.rb @@ -1,5 +1,10 @@ # frozen_string_literal: true +#-- +# Workaround for directly loading Gem::Version in some cases +module Gem; end +#++ + ## # The Version class processes string versions into comparable # values. A version string should normally be a series of numbers @@ -166,9 +171,6 @@ # specific situations, you should avoid using pessimistic versioning, as the # costs typically exceed the benefits. -# Workaround for directly loading Gem::Version in some cases -module Gem; end - class Gem::Version include Comparable