[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 committed by git
parent 63b1633f86
commit b85457c710
1 changed files with 6 additions and 5 deletions

View File

@ -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