Symbol#end_with? accepts Strings only
Regular expressions are not supported (same as String#end_with?).
This commit is contained in:
parent
35136e1e9c
commit
2535b1819f
Notes:
git
2023-02-27 00:26:47 +00:00
2
string.c
2
string.c
@ -11845,7 +11845,7 @@ sym_start_with(int argc, VALUE *argv, VALUE sym)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* 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?.
|
* Equivalent to <tt>self.to_s.end_with?</tt>; see String#end_with?.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user