例如:a.text名称为"capybara",我需要检查字符串中是否包含字符"ba".
if a.text.contains?("ba") # do something else # do something end
ruby
ruby ×1