# mb_string `mb_string` is extended Ruby string class for dealing multi-byte strings, add `mb_ljust`, `mb_rjust` and 'mb_center' methods. ## Installation Add this line to your application's Gemfile: ```ruby gem 'mb_string' ``` And then execute: $ bundle Or install it yourself as: $ gem install mb_string ## Usage `mb_ljust`, `mb_rjust` and `mb_center`: require 'mb_string' "あいうえお".mb_ljust(20) => "あいうえお " "あいうえお".mb_ljust(20, 'ん') => "あいうえおんんんんん" "あいうえお".mb_ljust(20, 'ほげ') => "あいうえおほげほげほ" ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/rochefort/mb_string.