Just place the parentheses so that there is no confusion. sentence.gsub('Robert', 'Joe').gsub('My', 'Your') => "Your name is Joe".
確定! 回上一頁