[rubygems/rubygems] [DOC] Enable Gem::Package example

Other code must not be between the doc and class definition.

https://github.com/rubygems/rubygems/commit/366784aae5
This commit is contained in:
Nobuyoshi Nakada 2022-03-15 00:26:03 +09:00 коммит произвёл git
Родитель 63b1633f86
Коммит b85457c710
1 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -3,7 +3,12 @@
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.
#++
#
require_relative "../rubygems"
require_relative 'security'
require_relative 'user_interaction'
##
# Example using a Gem::Package
#
# Builds a .gem file given a Gem::Specification. A .gem file is a tarball
@ -41,10 +46,6 @@
# #files are the files in the .gem tar file, not the Ruby files in the gem
# #extract_files and #contents automatically call #verify
require_relative "../rubygems"
require_relative 'security'
require_relative 'user_interaction'
class Gem::Package
include Gem::UserInteraction