Skip to content

Instantly share code, notes, and snippets.

@moonmaster9000
Created May 1, 2010 21:41
Show Gist options
  • Save moonmaster9000/386680 to your computer and use it in GitHub Desktop.
Save moonmaster9000/386680 to your computer and use it in GitHub Desktop.
class Author
attr_accessor :name, :books
def initialize(name)
@name = name
@books = []
end
end
class Book
attr_accessor :title, :authors
def initialize(title)
@title = title
@authors = []
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment