Ruby: start_with? How to ignoring uppercase
is there a better form to ignoring uppercase like this?
"Hello".start_with?("hell","Hell")
=>true
I only need if a string element in a array start with other string
ignoring uppercase like the "LIKE%" of MySql.
No comments:
Post a Comment