aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rake/dsl_definition.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-28 02:45:29 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-28 02:45:29 +0000
commit2619f216fef06c9fca948ca729a0e23b62996f09 (patch)
tree01c462490ba269df417fad115570ace6a765a25f /lib/rake/dsl_definition.rb
parent84ece951630c61eddab8be47b80fc1a7f774175f (diff)
downloadruby-2619f216fef06c9fca948ca729a0e23b62996f09.tar.gz
* lib/rake: Update rake to fix some bugs and hide deprecated features
from RDoc. * lib/rake/version.rb: Bump version to 0.9.2.1 to distinguish it from the released version. * NEWS: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rake/dsl_definition.rb')
-rw-r--r--lib/rake/dsl_definition.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/rake/dsl_definition.rb b/lib/rake/dsl_definition.rb
index e0b9c6fd0e..3294f9e6c0 100644
--- a/lib/rake/dsl_definition.rb
+++ b/lib/rake/dsl_definition.rb
@@ -2,11 +2,18 @@
require 'rake/file_utils_ext'
module Rake
+
+ ##
+ # DSL is a module that provides #task, #desc, #namespace, etc. Use this
+ # when you'd like to use rake outside the top level scope.
+
module DSL
+ #--
# Include the FileUtils file manipulation functions in the top
# level module, but mark them private so that they don't
# unintentionally define methods on other objects.
+ #++
include FileUtilsExt
private(*FileUtils.instance_methods(false))
@@ -139,7 +146,7 @@ module Rake
end
end
- module DeprecatedObjectDSL
+ module DeprecatedObjectDSL # :nodoc:
Commands = Object.new.extend DSL
DSL.private_instance_methods(false).each do |name|
line = __LINE__+1