Class: String

Inherits:
Object show all
Defined in:
lib/storyboard/common.rb

Instance Method Summary collapse

Instance Method Details

#contains_cjk?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/storyboard/common.rb', line 3

def contains_cjk?
  !!(self =~ Storyboard.encode_regexp('\p{Han}|\p{Katakana}|\p{Hiragana}|\p{Hangul}'))
end