# One may define top-level methods def greet name = gets "Hi #{name}" # Return value of the method. Return statement optional. end puts greet # A method returns the value of the last line