mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Special treatment for Hashes, not Arrays; ref #2349
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
class String
|
||||
def %(args)
|
||||
if args.is_a? Array
|
||||
sprintf(self, *args)
|
||||
else
|
||||
if args.is_a? Hash
|
||||
sprintf(self, args)
|
||||
else
|
||||
sprintf(self, *args)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user