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 coas-nagasima, 7 years ago

文字コードを設定

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby;charset=UTF-8
File size: 131 bytes
Line 
1class String
2 def %(args)
3 if args.is_a? Array
4 sprintf(self, *args)
5 else
6 sprintf(self, args)
7 end
8 end
9end
Note: See TracBrowser for help on using the repository browser.