summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-18 12:47:24 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-18 12:47:24 +0000
commita543c433a7fef3fe953b0cd4c1684494d1bc16a2 (patch)
tree4b0d7d5931e5df6badbb0228bf5033a0c0912a73 /lib
parent8dfd918d5b883d8c52acb501bf2164c157f8f91f (diff)
* 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@23485 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 5c723a7c20..7c16a0c249 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)