lib/klipbook/book_summary.rb in klipbook-0.2.1 vs lib/klipbook/book_summary.rb in klipbook-0.3.0
- old
+ new
@@ -21,10 +21,11 @@
def ==(other)
return false unless other.instance_of?(self.class)
title == other.title && author == other.author
end
- def as_html
+ def as_html(options={})
+ include_pages = options[:include_pages]
ERB.new(template, 0, '%<>').result(binding)
end
def template
@template ||= File.read(File.join(File.dirname(__FILE__), 'book_summary.erb'))