154 | | """ |
155 | | Returns the string with any given args applied to it via String.Format |
156 | | """ |
157 | | test |
158 | | s = '{0}is{1}' |
159 | | assert s.fmt('0', '1') =='0is1' |
160 | | assert s.fmt(2, 1) == '2is1' |
161 | | assert s.fmt('One', 'NotTwo') == 'OneisNotTwo' |
162 | | assert s.fmt(nil, nil) == 'is' |
163 | | body |
164 | | return String.format(this, args) to ! |
| 159 | """ |
| 160 | Returns the string with any given args applied to it via String.Format |
| 161 | """ |
| 162 | test |
| 163 | s = '{0}is{1}' |
| 164 | assert s.fmt('0', '1') =='0is1' |
| 165 | assert s.fmt(2, 1) == '2is1' |
| 166 | assert s.fmt('One', 'NotTwo') == 'OneisNotTwo' |
| 167 | assert s.fmt(nil, nil) == 'is' |
| 168 | body |
| 169 | return String.format(this, args) to ! |