* lib/fileutils.rb (cd): no longer accept :noop option, related code is useless. [ruby-core:05858] [ruby-Bugs:2494]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9bfb4dc6ac
commit
8a6eb889e0
@ -1,3 +1,8 @@
|
|||||||
|
Sat Sep 24 08:54:05 2005 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* lib/fileutils.rb (cd): no longer accept :noop option, related
|
||||||
|
code is useless. [ruby-core:05858] [ruby-Bugs:2494]
|
||||||
|
|
||||||
Sat Sep 24 08:30:00 2005 Tanaka Akira <akr@m17n.org>
|
Sat Sep 24 08:30:00 2005 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* lib/pathname.rb (Pathname#sub): new method.
|
* lib/pathname.rb (Pathname#sub): new method.
|
||||||
|
@ -118,7 +118,7 @@ module FileUtils
|
|||||||
def cd(dir, options = {}, &block) # :yield: dir
|
def cd(dir, options = {}, &block) # :yield: dir
|
||||||
fu_check_options options, :verbose
|
fu_check_options options, :verbose
|
||||||
fu_output_message "cd #{dir}" if options[:verbose]
|
fu_output_message "cd #{dir}" if options[:verbose]
|
||||||
Dir.chdir(dir, &block) unless options[:noop]
|
Dir.chdir(dir, &block)
|
||||||
fu_output_message 'cd -' if options[:verbose] and block
|
fu_output_message 'cd -' if options[:verbose] and block
|
||||||
end
|
end
|
||||||
module_function :cd
|
module_function :cd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user