I'm trying to define a class method using two arguments - title and author. When I try to pass my arguments I'm getting an argument error
syntax error, unexpected ',', expecting ')' book.set_title_and_author= ("Ender's Game", "Orson Scott Card")
class Book
def set_title_and_author= (title, author)
@title = title
@author = author
end
def description
"#{@title}was written by #{@author}"
end
end
book = Book.new
book.set_title_and_author= ("Ender's Game", "Orson Scott Card)
p book.description
Am I not allowed to pass more than one argument in my setter method or is there something else that I'm missing?