Symbol#end_with? accepts Strings only

Regular expressions are not supported (same as String#end_with?).
This commit is contained in:
Adam Daniels 2023-02-26 14:23:04 -05:00 committed by Hiroshi SHIBATA
parent 35136e1e9c
commit 2535b1819f
Notes: git 2023-02-27 00:26:47 +00:00

View File

@ -11845,7 +11845,7 @@ sym_start_with(int argc, VALUE *argv, VALUE sym)
/*
* call-seq:
* end_with?(*string_or_regexp) -> true or false
* end_with?(*strings) -> true or false
*
*
* Equivalent to <tt>self.to_s.end_with?</tt>; see String#end_with?.