Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hello Person in a function

def hello_person(name)
  puts "Hello #{name}!"
end

puts "Before"
hello_person "Foo"
hello_person("Bar")
puts "After"
Before
Hello Foo!
Hello Bar!
After