ruby-changes:19501
From: drbrain <ko1@a...>
Date: Fri, 13 May 2011 07:49:47 +0900 (JST)
Subject: [ruby-changes:19501] drbrain:r31541 (trunk): * lib/fileutils.rb: Hide internal methods from RDoc. Patch by Darragh
drbrain 2011-05-13 07:49:40 +0900 (Fri, 13 May 2011) New Revision: 31541 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31541 Log: * lib/fileutils.rb: Hide internal methods from RDoc. Patch by Darragh Curran. [Ruby 1.9 - Bug #4684] Modified files: trunk/ChangeLog trunk/lib/fileutils.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 31540) +++ ChangeLog (revision 31541) @@ -1,3 +1,8 @@ +Fri May 13 07:49:02 2011 Eric Hodel <drbrain@s...> + + * lib/fileutils.rb: Hide internal methods from RDoc. Patch by Darragh + Curran. [Ruby 1.9 - Bug #4684] + Fri May 13 07:36:23 2011 Eric Hodel <drbrain@s...> * lib/webrick/httpservlet/erbhandler.rb: Add documentation. Index: lib/fileutils.rb =================================================================== --- lib/fileutils.rb (revision 31540) +++ lib/fileutils.rb (revision 31541) @@ -739,7 +739,7 @@ end module_function :remove_entry_secure - def fu_have_symlink? #:nodoc + def fu_have_symlink? #:nodoc: File.symlink nil, nil rescue NotImplementedError return false @@ -860,7 +860,7 @@ OPT_TABLE['install'] = [:mode, :preserve, :noop, :verbose] - def user_mask(target) + def user_mask(target) #:nodoc: mask = 0 target.each_byte do |byte_chr| case byte_chr.chr @@ -878,7 +878,7 @@ end private_module_function :user_mask - def mode_mask(mode, path) + def mode_mask(mode, path) #:nodoc: mask = 0 mode.each_byte do |byte_chr| case byte_chr.chr @@ -900,7 +900,7 @@ end private_module_function :mode_mask - def symbolic_modes_to_i(modes, path) + def symbolic_modes_to_i(modes, path) #:nodoc: current_mode = (File.stat(path).mode & 07777) modes.split(/,/).inject(0) do |mode, mode_sym| mode_sym = "a#{mode_sym}" if mode_sym =~ %r!^[+-=]! @@ -921,7 +921,7 @@ end private_module_function :symbolic_modes_to_i - def fu_mode(mode, path) + def fu_mode(mode, path) #:nodoc: mode.is_a?(String) ? symbolic_modes_to_i(mode, path) : mode end private_module_function :fu_mode -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/