aboutsummaryrefslogtreecommitdiffstats
path: root/src/Base.js
blob: 6b1242bf1dbc939adfb7c883e58cc48e9d8da021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
  }
}