diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-11 16:59:10 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-07-11 16:59:10 +0000 |
commit | 70510d026f8d86693dccaba07417488eed09b41d (patch) | |
tree | 81670e1c01692ae397e7f1f2e4caf646cef34d3c /lib/pathname.rb | |
parent | c6820cc3bea5476f605a51e38c1207d266f45ff6 (diff) |
* lib/csv.rb: Fix unused variable warnings.
Patch by Run Paint [ruby-core:30991]
* lib/date.rb: ditto
* lib/debug.rb: ditto
* lib/drb/drb.rb: ditto
* lib/drb/invokemethod.rb: ditto
* lib/irb/ruby-lex.rb: ditto
* lib/irb/slex.rb: ditto
* lib/logger.rb: ditto
* lib/pathname.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pathname.rb')
-rw-r--r-- | lib/pathname.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb index cede33d273..f24fd4d76d 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -496,7 +496,7 @@ class Pathname def relative? path = @path while r = chop_basename(path) - path, basename = r + path, = r end path == '' end @@ -509,7 +509,7 @@ class Pathname # def each_filename # :yield: filename return to_enum(__method__) unless block_given? - prefix, names = split_names(@path) + _, names = split_names(@path) names.each {|filename| yield filename } nil end @@ -565,7 +565,7 @@ class Pathname path = @path yield self while r = chop_basename(path) - path, name = r + path, = r break if path.empty? yield self.class.new(del_trailing_separator(path)) end |