mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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:
parent
63b1633f86
commit
b85457c710
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue