diff options
| author | Yuichiro MASUI <[email protected]> | 2013-01-21 16:14:09 +0900 |
|---|---|---|
| committer | Yuichiro MASUI <[email protected]> | 2013-01-21 16:14:09 +0900 |
| commit | befb830a4280cb4824489a4bd8f830d91b34fc2a (patch) | |
| tree | 2b84fe048af7f6919b36015da4aec7feedd7e03d /tasks/ruby_ext.rake | |
| parent | 8e86ff2283d427b5cb2a02607e1aab998cb5090c (diff) | |
| download | mruby-befb830a4280cb4824489a4bd8f830d91b34fc2a.tar.gz mruby-befb830a4280cb4824489a4bd8f830d91b34fc2a.zip | |
Fixed 1.8 compatibilitywq
Diffstat (limited to 'tasks/ruby_ext.rake')
| -rw-r--r-- | tasks/ruby_ext.rake | 6 |
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 |
