source: EcnlProtoTool/trunk/mruby-1.2.0/mrbgems/mruby-sprintf/mrblib/string.rb@ 270

Last change on this file since 270 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 131 bytes
RevLine 
[270]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.