@@ -26,6 +26,9 @@ def self.[](table)
26
26
#
27
27
# Also checks bidirectional characters, when <tt>bidi: true</tt>, which may
28
28
# raise a BidiStringError.
29
+ #
30
+ # +profile+ is an optional string which will be added to any exception that
31
+ # is raised (it does not affect behavior).
29
32
def check_prohibited! ( string , *tables , bidi : false , profile : nil )
30
33
tables = TABLE_TITLES . keys . grep ( /^C/ ) if tables . empty?
31
34
tables |= %w[ C.8 ] if bidi
@@ -47,10 +50,11 @@ def check_prohibited!(string, *tables, bidi: false, profile: nil)
47
50
# RandALCat character MUST be the last character of the string.
48
51
#
49
52
# This is usually combined with #check_prohibited!, so table "C.8" is only
50
- # checked when + c_8: true+ .
53
+ # checked when <tt> c_8: true</tt> .
51
54
#
52
55
# Raises either ProhibitedCodepoint or BidiStringError unless all
53
- # requirements are met.
56
+ # requirements are met. +profile+ is an optional string which will be
57
+ # added to any exception that is raised (it does not affect behavior).
54
58
def check_bidi! ( string , c_8 : false , profile : nil )
55
59
check_prohibited! ( string , "C.8" , profile : profile ) if c_8
56
60
if BIDI_FAILS_REQ2 . match? ( string )
0 commit comments