source:
EcnlProtoTool/trunk/mruby-1.2.0/mrbgems/mruby-sprintf/mrblib/string.rb@
321
Last change on this file since 321 was 321, checked in by , 7 years ago | |
---|---|
|
|
File size: 131 bytes |
Rev | Line | |
---|---|---|
[270] | 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.