summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-16 07:01:05 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-16 07:01:05 +0000
commitc9915e5b08bbb58618b2bbc2dcbc9dafd5c1ba84 (patch)
tree4aa7c290b18f89b97b8bf3e45fddf9ae23340ecf /lib
parent836271c28be00a3ef8bc60762369ce99da0169e5 (diff)
merge revision(s) 23485:
* lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@28337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/pathname.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pathname.rb b/lib/pathname.rb
index 86c4b98ee7..84196355a6 100644
--- a/lib/pathname.rb
+++ b/lib/pathname.rb
@@ -260,7 +260,7 @@ class Pathname
ensure
Thread.current[:pathname_sub_matchdata] = old
end
- yield *args
+ yield(*args)
}
else
path = @path.sub(pattern, *rest)