source:
EcnlProtoTool/trunk/mruby-1.3.0/mrbgems/mruby-sprintf/mrblib/string.rb@
398
Last change on this file since 398 was 321, checked in by , 7 years ago | |
---|---|
|
|
File size: 131 bytes |
Line | |
---|---|
1 | class String |
2 | def %(args) |
3 | if args.is_a? Array |
4 | sprintf(self, *args) |
5 | else |
6 | sprintf(self, args) |
7 | end |
8 | end |
9 | end |
Note:
See TracBrowser
for help on using the repository browser.