class String
¶ ↑
utils.rb
¶ ↑
Image utility functions to inspect text font metrics This file is part of RSyntaxTree, which is a ruby port of Andre Eisenbach's excellent program phpSyntaxTree. Copyright (c) 2007-2021 Yoichiro Hasebe <yohasebe@gmail.com> Copyright (c) 2003-2004 Andre Eisenbach <andre@ironcreek.net>
Public Instance Methods
contains_cjk?()
click to toggle source
# File lib/rsyntaxtree/utils.rb, line 17 def contains_cjk? !!(self =~ /\p{Han}|\p{Katakana}|\p{Hiragana}|\p{Hangul}/) end