mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 00:10:15 +00:00
Cleanup.
This commit is contained in:
parent
aa58edd853
commit
c54137a493
15
src/sheet.js
15
src/sheet.js
@ -1,18 +1,23 @@
|
||||
/**
|
||||
Abstract character/resume sheet representation.
|
||||
@license Copyright (c) 2015 by James M. Devlin. All rights reserved.
|
||||
*/
|
||||
|
||||
(function() {
|
||||
|
||||
var FS = require('fs');
|
||||
|
||||
function Sheet() {
|
||||
|
||||
this.id = null;
|
||||
this.title = "";
|
||||
this.sheets = [];
|
||||
this.title = "New";
|
||||
this.rep = { };
|
||||
|
||||
this.fileName = null;
|
||||
}
|
||||
|
||||
Sheet.prototype.open = function( file ) {
|
||||
Sheet.prototype.open = function( file, title ) {
|
||||
this.rep = JSON.parse( FS.readFileSync( file, 'utf8' ) );
|
||||
this.fileName = file;
|
||||
this.title = title || this.rep.basics.name;
|
||||
return this;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user