Text::Reform reformats text according to formatting picture templates. It's a port from the Perl module of the same name originally by Damian Conway (email@example.com). Much of the documentation has been copied from the original documentation and adapted to the Ruby version. The interface is subject to change, since it will undergo major Rubyfication; additionally, some features may have not been ported yet.
Gemfile gem 'text-reform', '~> 0.3.0'
install gem install text-reform