diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-12 22:49:40 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-12 22:49:40 +0000 |
commit | 57580b76e8a20b266df05d1e099ae7af9bab4612 (patch) | |
tree | 2722582918f43d1571cebf4afdd3bcefb4ca0607 /lib/fileutils.rb | |
parent | d6e3bc4ce499fe5f439441c0c5117a6e0d54b5de (diff) |
* lib/fileutils.rb: Hide internal methods from RDoc. Patch by Darragh
Curran. [Ruby 1.9 - Bug #4684]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index 423257cd15..de79f840bc 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -739,7 +739,7 @@ module FileUtils 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 @@ module FileUtils 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 @@ module FileUtils 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 @@ module FileUtils 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 @@ module FileUtils 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 |