diff options
Diffstat (limited to 'src/Base.js')
-rw-r--r-- | src/Base.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Base.js b/src/Base.js new file mode 100644 index 0000000..6b1242b --- /dev/null +++ b/src/Base.js @@ -0,0 +1,14 @@ +export default class Base { + constructor (node, {extensions = []}) { + this.tags = [] + + for (let extension of extensions) { + extension.setup.call(this, node) + this.tags.push(extension.name) + } + } + + is (ability) { + return this.tags.includes(ability) + } +} |