honkit
Version:
HonKit is building beautiful books using Markdown.
23 lines (22 loc) • 639 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const immutable_1 = __importDefault(require("immutable"));
class Language extends immutable_1.default.Record({
title: String(),
path: String()
}) {
getTitle() {
return this.get("title");
}
getPath() {
return this.get("path");
}
getID() {
return path_1.default.basename(this.getPath());
}
}
exports.default = Language;