module ZhongwenTools::Romanization::Yale
Public Class Methods
split(str)
click to toggle source
# File lib/zhongwen_tools/romanization/yale.rb, line 16 def self.split(str) regex = /(#{ ZhongwenTools::Romanization.detect_regex(:yale) }*)/ ZhongwenTools::Romanization.split_romanization(str, regex) end
to_yale(*args)
click to toggle source
# File lib/zhongwen_tools/romanization/yale.rb, line 4 def self.to_yale(*args) str, from = args from ||= ZhongwenTools::Romanization.romanization?(str) ZhongwenTools::Romanization.convert str, :yale, from.to_sym end
yale?(str)
click to toggle source
# File lib/zhongwen_tools/romanization/yale.rb, line 11 def self.yale?(str) regex = ZhongwenTools::Romanization.detect_regex(:yale) ZhongwenTools::Romanization.detect_romanization(str, regex) end