Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a9ad1f4aca
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.444 kb
# This file defines a simple class and includes Persistable into that class
# so that we can test the effectiveness of Persistable.
#
# We assume that the Persistable module has already been persisted to the
# repository, so we do NOT need to require it here...
#
# require 'persistable'
class Book < Struct.new(:title, :author)
include Persistable
attr_accessor :read
alias read? read
def to_s
title + ' by ' + author
end
end
Jump to Line
Something went wrong with that request. Please try again.