Skip to content

Instantly share code, notes, and snippets.

THE TRAGEDY OF HAMLET, PRINCE OF DENMARK
by William Shakespeare
Dramatis Personae
Claudius, King of Denmark.
class Book
attr_accessor :title, :author, :category
def initialize title, author, category
@title = title
@author = author
@category = category
end
end
class Book
attr_accessor :title, :author, :category
def initialize title, author, category
@title = title
@author = author
@category = category
end
end