536 shaares
1 résultat
taggé
ruby
my_string = "abcdefg"
if "cde".in? my_string
puts "'cde' is in the String."
puts "i.e. String includes 'cde'"
end
if "cde".in? my_string
puts "'cde' is in the String."
puts "i.e. String includes 'cde'"
end