Ruby - Methods
Why does this Ruby code raise an error?
def book(title:, author:)
puts "#{title} by #{author}"
end
book(title: 'Ruby 101')def book(title:, author:)
puts "#{title} by #{author}"
end
book(title: 'Ruby 101')15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions