class CJKString
Public Instance Methods
all_cjk?()
click to toggle source
# File lib/cjk_string.rb, line 10 def all_cjk? length == cjk_chars.length end
any_cjk?()
click to toggle source
# File lib/cjk_string.rb, line 14 def any_cjk? cjk_chars.length > 1 end
cjk_chars()
click to toggle source
# File lib/cjk_string.rb, line 2 def cjk_chars @cjk_chars ||= scan(Analects::Models::Zi::REGEXP) end
one_cjk?()
click to toggle source
# File lib/cjk_string.rb, line 6 def one_cjk? cjk_chars.length == 1 end