Reemplazar la subcontratación en Ruby
user_input = "mooventhan"
user_input.gsub!(/moo/, "hel")
print user_input
Mooventhan
user_input = "mooventhan"
user_input.gsub!(/moo/, "hel")
print user_input
myString = "Welcome to JavaScript!"
myString["JavaScript"]= "Ruby"
puts myString
=> "Welcome to Ruby!"