[DOC] Tweaks for String#ascii_only?
This commit is contained in:
parent
c5c252c067
commit
1f09c9fa14
Notes:
git
2025-05-16 16:47:08 +00:00
4
string.c
4
string.c
@ -11901,12 +11901,12 @@ rb_str_valid_encoding_p(VALUE str)
|
||||
* call-seq:
|
||||
* ascii_only? -> true or false
|
||||
*
|
||||
* Returns +true+ if +self+ contains only ASCII characters,
|
||||
* +false+ otherwise:
|
||||
* Returns whether +self+ contains only ASCII characters:
|
||||
*
|
||||
* 'abc'.ascii_only? # => true
|
||||
* "abc\u{6666}".ascii_only? # => false
|
||||
*
|
||||
* Related: see {Querying}[rdoc-ref:String@Querying].
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user