diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-21 03:02:52 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-21 03:02:52 -0800 |
| commit | 7987619bedf30e1ff764599416282af07e096e65 (patch) | |
| tree | 5d467103ba939c3cc5d278c5d93b59922c75abd2 | |
| parent | 73fa0d6355353f622e4446075f98a02761f03118 (diff) | |
| parent | befb830a4280cb4824489a4bd8f830d91b34fc2a (diff) | |
| download | mruby-7987619bedf30e1ff764599416282af07e096e65.tar.gz mruby-7987619bedf30e1ff764599416282af07e096e65.zip | |
Merge pull request #760 from masuidrive/fixed_compat
Fixed 1.8 compatibility
| -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 22a8409d4..2536a2e4b 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 |
