ruby lesson index
ruby lesson index
\ 的作用相当于一个 ‘
@, it is an instance variable
__FILE__ is the magic variable that contains the name of the current file.
=> nil tells us that it knows we’re done defining the methodh to take a name as a parameter.
puts always returns nil, which is Ruby’s absolutely-positively-nothing value.puts is the basic command to print something out in Ruby.