07_method.js 296 Bytes
Newer Older
YazhouChen's avatar
YazhouChen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
'use strict'

const Method = require('../../').Method

module.exports = function () {
  class C { }

  const B = new Method(function (c) {
    return { c }
  }, [ C ])

  class A {
    static constitute () { return [ B ] }
    constructor (b) {
      this.b = b
    }
  }

  return { A, B, C }
}