HankakuKana Validator, inspired by Kusakabe-san
- Ruby 1.9.3 or later
Add this line to your application's Gemfile:
gem 'kusakabe'
And then execute:
$ bundle
irb(main):001:0> require 'kusakabe'
=> true
irb(main):002:0> Kusakabe.validate('あいうえおアイウエオ')
Kusakabe::HankakuKanaError: 文字化けしてますよ
© 2013 Tomohiro TAIRA. This project is licensed under the MIT license. See LICENSE for details.