Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/base/string.rb
Instance Method Summary collapse
Instance Method Details
#fix(size, padstr = " ") ⇒ Object
6 7 8 |
# File 'lib/base/string.rb', line 6 def fix(size, padstr = " ") self[0...size].rjust(size, padstr) end |