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