Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Symbol#end_with?
(*::string suffixes) -> bool
end_with?(*strings) → true or false
string.c
View on GitHub ↗
static VALUE
sym_end_with(int argc, VALUE *argv, VALUE sym)
{
return rb_str_end_with(argc, argv, rb_sym2str(sym));
}
Equivalent to self.to_s.end_with?; see String#end_with?.