Module: Chinese
- Defined in:
- lib/chinese_convt.rb,
lib/chinese_convert/zh_convt.rb
Defined Under Namespace
Classes: Convert
Class Method Summary collapse
- .zh2cn(str) ⇒ Object
- .zh2hk(str) ⇒ Object
- .zh2sim(str) ⇒ Object
- .zh2tra(str) ⇒ Object
- .zh2tw(str) ⇒ Object
Class Method Details
.zh2cn(str) ⇒ Object
21 22 23 |
# File 'lib/chinese_convt.rb', line 21 def self.zh2cn( str ) Convert.zh_convt( [4,1] , str ) end |
.zh2hk(str) ⇒ Object
17 18 19 |
# File 'lib/chinese_convt.rb', line 17 def self.zh2hk( str ) Convert.zh_convt( [3,0] , str ) end |
.zh2sim(str) ⇒ Object
9 10 11 |
# File 'lib/chinese_convt.rb', line 9 def self.zh2sim( str ) Convert.zh_convt( [1] , str ) end |