vendredi 22 janvier 2016

Do 'starts_with' and 'start_with' have the same function in Ruby?

Apparently they are giving me the same output on any input like

"Ruby is red".start_with?"Ruby"

or

"Ruby is red".starts_with?"Ruby"

both are giving the same result.

Aucun commentaire:

Enregistrer un commentaire