ChinesInitial 中文转首字母,比如:
ChineseInitial.to("月泉") => "Y"
ChineseInitial.("月泉") => "yq"
安装
Add this line to your application's Gemfile:
gem 'chines_initial'
And then execute:
$ bundle
Or install it yourself as:
$ gem install chines_initial
Usage
TODO: Write usage instructions here
ChineseInitial.to("月泉") => "Y"
ChineseInitial.("月泉") => "yq"