Question 1 Let’s create a function to enter a name. If there are periods (.) or spaces other than the name, an error will be displayed.
*If you do not understand, use the API to solve the problem. Reference URL: https://docs.ruby-lang.org/ja/search/
Tips Use the include? method.
include? The include? method is a method to determine whether the specified element is included in the array or character string. Screenshot 2020-08-14 16.50.22.png
If there is (.) or () in str, it is OK if you branch the condition with include? so that it cannot be registered.