ruby-changes:26253
From: drbrain <ko1@a...>
Date: Tue, 11 Dec 2012 15:26:06 +0900 (JST)
Subject: [ruby-changes:26253] drbrain:r38310 (trunk): * ext/pathname/lib/pathname.rb: Hide private methods from RDoc.
drbrain 2012-12-11 15:25:56 +0900 (Tue, 11 Dec 2012) New Revision: 38310 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38310 Log: * ext/pathname/lib/pathname.rb: Hide private methods from RDoc. Modified files: trunk/ChangeLog trunk/ext/pathname/lib/pathname.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38309) +++ ChangeLog (revision 38310) @@ -1,3 +1,7 @@ +Tue Dec 11 15:24:05 2012 Eric Hodel <drbrain@s...> + + * ext/pathname/lib/pathname.rb: Hide private methods from RDoc. + Tue Dec 11 15:11:29 2012 NARUSE, Yui <naruse@r...> * tool/make-snapshot (BASERUBY): add --disable-gem to avoid load gems. Index: ext/pathname/lib/pathname.rb =================================================================== --- ext/pathname/lib/pathname.rb (revision 38309) +++ ext/pathname/lib/pathname.rb (revision 38310) @@ -39,7 +39,7 @@ # :startdoc: # chop_basename(path) -> [pre-basename, basename] or nil - def chop_basename(path) + def chop_basename(path) # :nodoc: base = File.basename(path) if /\A#{SEPARATOR_PAT}?\z/o =~ base return nil @@ -50,7 +50,7 @@ private :chop_basename # split_names(path) -> prefix, [name, ...] - def split_names(path) + def split_names(path) # :nodoc: names = [] while r = chop_basename(path) path, basename = r @@ -60,7 +60,7 @@ end private :split_names - def prepend_prefix(prefix, relpath) + def prepend_prefix(prefix, relpath) # :nodoc: if relpath.empty? File.dirname(prefix) elsif /#{SEPARATOR_PAT}/o =~ prefix @@ -95,7 +95,7 @@ # Clean the path simply by resolving and removing excess +.+ and +..+ entries. # Nothing more, nothing less. # - def cleanpath_aggressive + def cleanpath_aggressive # :nodoc: path = @path names = [] pre = path @@ -121,7 +121,7 @@ private :cleanpath_aggressive # has_trailing_separator?(path) -> bool - def has_trailing_separator?(path) + def has_trailing_separator?(path) # :nodoc: if r = chop_basename(path) pre, basename = r pre.length + basename.length < path.length @@ -132,7 +132,7 @@ private :has_trailing_separator? # add_trailing_separator(path) -> path - def add_trailing_separator(path) + def add_trailing_separator(path) # :nodoc: if File.basename(path + 'a') == 'a' path else @@ -141,7 +141,7 @@ end private :add_trailing_separator - def del_trailing_separator(path) + def del_trailing_separator(path) # :nodoc: if r = chop_basename(path) pre, basename = r pre + basename @@ -153,7 +153,7 @@ end private :del_trailing_separator - def cleanpath_conservative + def cleanpath_conservative # :nodoc: path = @path names = [] pre = path @@ -331,7 +331,7 @@ Pathname.new(plus(@path, other.to_s)) end - def plus(path1, path2) # -> path + def plus(path1, path2) # -> path # :nodoc: prefix2 = path2 index_list2 = [] basename_list2 = [] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/