0
Ruby
Is anyone who knows a form of code in Ruby with which to form groups of key letters such as 4 letters that if entered by the user by input to read from that hash and give the result directly? that is, from the iron man to read "iron" and send me directly to an "if" or elsif from which to give the result and if you enter a letter or 2 to give the name of the hash with those letters that contain them?
2 Réponses
+ 1
I did not understand your question Bogdan Văduva
+ 1
Look at my code with "avengers search" there I have the names of the characters and introduced them into a "hash", it helps me that form of "gets.chomp.downcase" because I get rid of many variations of those actors from "hash", I do not have to write anymore in letters or in "array" I can write "IroN MaN" as it still gives me the result, but I still have to write the whole name of those actors and right, I want to put it to read from the "hash" 4 letters(key) such as "iron" and print the result to the first "if" with the "iron man" and about him .... do you understand? I do not speak english well so I apologize!