Write the code that assigns the received argument ARGV  to a variable called name and issues it.
> ruby name_variable.rb Rudy Rudy
There is no need to declare a type in Ruby. Simply use equals.
name = 'Rudy'
> ruby name_variable.rb Rudy
ruby: No such file or directory -- name_variable.rb (LoadError)
It returns that there is no such file. Start emacs
> emacs name_variable.rb
Type in the code as shown below and save as C-x → C-s.
Then, the previous error disappears and "Ruby" is displayed.
> ruby name_variable.rb Rudy "Rudy"
Substitute it in --name and refactor it to type Rudy. --Refactor to receive ARGV  and return your name.
> ruby hello_method.rb Rudy Hello Rudy.
Create a hello method that returns.
In Ruby, a group of functions and procedures defines a method. method can take zero or more arguments.
def hello(name) p name end
Edit hello \ _method.rb with emacs.
> emacs hello_method.rb
This time, we will consider the caller rather than the contents of the method.
Then, the following error message is displayed.
> ruby hello_method.rb Rudy hello_method.rb:1:in `<main>': undefined local variable or method `name' for main:Object (NameError)
An error that means name is undefined. So, if you substitute ARGV  for name and execute it.
name = ARGV hello(name)
The following error message is displayed.
> ruby hello_method.rb Rudy hello_method.rb:2:in `<main>': undefined method `hello' for main:Object (NoMethodError)
There is no Hello method. In other words
def hello(name) p name end name = ARGV hello(name)
And it is sufficient.