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 5 years ago
- May 21, 2020
License
MIT License
Links
Synced at
Wed, 29 Oct 2025 06:13:36 GMT
Languages