Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Stringクラス > ascii_only?

instance method String#ascii_only?

ascii_only? -> bool[permalink][rdoc]

文字列がASCII文字のみで構成されている場合に true を返します。さもなくば false を返します。