textwrap
textwrap
A simple library to wrap text to a given width.
Installation
-
Add the dependency to your
shard.yml
:dependencies: textwrap: github: dscottboggs/textwrap
-
Run
shards install
Usage
require "textwrap"
some_long_string.wrap() # returns the wrapped string
Development
Performance and functionality improvements are welcome.
Contributing
- Fork it (https://github.com/dscottboggs/textwrap/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
- D. Scott Boggs - creator and maintainer
Repository
textwrap
Owner
Statistic
- 0
- 0
- 0
- 1
- 0
- over 4 years ago
- May 21, 2020
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 03:15:28 GMT
Languages