summaryrefslogtreecommitdiffhomepage
path: root/tasks/ruby_ext.rake
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2013-01-21 16:14:09 +0900
committerYuichiro MASUI <[email protected]>2013-01-21 16:14:09 +0900
commitbefb830a4280cb4824489a4bd8f830d91b34fc2a (patch)
tree2b84fe048af7f6919b36015da4aec7feedd7e03d /tasks/ruby_ext.rake
parent8e86ff2283d427b5cb2a02607e1aab998cb5090c (diff)
downloadmruby-befb830a4280cb4824489a4bd8f830d91b34fc2a.tar.gz
mruby-befb830a4280cb4824489a4bd8f830d91b34fc2a.zip
Fixed 1.8 compatibilitywq
Diffstat (limited to 'tasks/ruby_ext.rake')
-rw-r--r--tasks/ruby_ext.rake6
1 files changed, 5 insertions, 1 deletions
diff --git a/tasks/ruby_ext.rake b/tasks/ruby_ext.rake
index ebd499063..7422e3faf 100644
--- a/tasks/ruby_ext.rake
+++ b/tasks/ruby_ext.rake
@@ -22,7 +22,11 @@ class String
end
str
else
- sprintf(self, params)
+ if params.is_a?(Array)
+ sprintf(self, *params)
+ else
+ sprintf(self, params)
+ end
end
end
end