examples/hello.rb in ting-0.9.0 vs examples/hello.rb in ting-0.10.0
- old
+ new
@@ -1,12 +1,12 @@
$: << File.join(File.dirname(__FILE__), '../lib')
-require 'pinyin'
+require 'ting'
-conv1 = Pinyin::Converter.new(:hanyu, :numbers, :wadegiles, :accents)
-conv2 = Pinyin::Converter.new(:wadegiles, :accents, :zhuyin, :marks)
+conv1 = Ting::Converter.new(:hanyu, :numbers, :wadegiles, :accents)
+conv2 = Ting::Converter.new(:wadegiles, :accents, :zhuyin, :marks)
-pinyin = 'wo3 de2 peng2 you3 shi4 dai4 fu'
+pinyin = 'wo3 de peng2 you3 shi4 dai4 fu'
wadegiles = conv1 << pinyin
zhuyin = conv2 << wadegiles
puts pinyin, wadegiles, zhuyin