stringpad
Stringpad
Microlibrary for quick and easy string padding.
Installation
Add this to your application's shard.yml
:
dependencies:
stringpad:
github: crystalrealm/stringpad
Usage
require "stringpad"
Stringpad.lpad("Hello World.", " ", 5)
#=> Hello World.
Stringpad.rpad("Hello World.", " ", 5)
#=> Hello World. |
Contributing
- Fork it (https://github.com/crystalrealm/stringpad/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- molnarmark Mark Molnar - creator, maintainer
Repository
stringpad
Owner
Statistic
- 0
- 0
- 0
- 1
- 0
- about 6 years ago
- August 30, 2018
License
MIT License
Links
Synced at
Wed, 06 Nov 2024 14:34:42 GMT
Languages