summaryrefslogtreecommitdiffstats
path: root/lib/models/book.js
diff options
context:
space:
mode:
authorSamy Pesse <samypesse@gmail.com>2016-04-28 21:25:58 +0200
committerSamy Pesse <samypesse@gmail.com>2016-04-28 21:25:58 +0200
commit826f90505c1a70ad2a8cf3715bac6d5efaeba22c (patch)
treea35600d555ff0268f6eb2fc1bd9c44c06438eb27 /lib/models/book.js
parent7ae36f16c84238340dd6b39a75423f5e95f27bbc (diff)
downloadgitbook-826f90505c1a70ad2a8cf3715bac6d5efaeba22c.zip
gitbook-826f90505c1a70ad2a8cf3715bac6d5efaeba22c.tar.gz
gitbook-826f90505c1a70ad2a8cf3715bac6d5efaeba22c.tar.bz2
Add command "init"
Diffstat (limited to 'lib/models/book.js')
-rw-r--r--lib/models/book.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/models/book.js b/lib/models/book.js
index be055d7..030223f 100644
--- a/lib/models/book.js
+++ b/lib/models/book.js
@@ -191,7 +191,6 @@ Book.prototype.addLanguageBook = function(language, book) {
return this.set('books', books);
};
-
/**
Set the summary for this book
@@ -202,6 +201,15 @@ Book.prototype.setSummary = function(summary) {
return this.set('summary', summary);
};
+/**
+ Set the readme for this book
+
+ @param {Readme}
+ @return {Book}
+*/
+Book.prototype.setReadme = function(readme) {
+ return this.set('readme', readme);
+};
/**
Change log level