0.4.0 • Published 8 years ago

industry-functions v0.4.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

IndustryFunctions Build Status

Retrieve factory instance and class methods.

Usage

import { factory } from "industry"
import { instance } from "industry-instance"
import { functions } from "industry-functions"

class Test {
  hello() {}
  static world() {}
}

let test = factory(Test)
  .set("instance", instance)
  .set("functions", functions)

test().functions()             // { 'hello' => [Function: hello] }
test().constructor.functions() // { 'world' => [Function: world] }
0.4.0

8 years ago

0.3.0

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago