Klass

Creates a new Klass

new Klass(foo: )

Parameters

  1. foo ():

Static members

Method
Description
isClass(other: Object, also: Any): boolean
Decide whether an object is a Klass instance This is a [klasssic] Klass This is a [link to something that does not exist] DoesNot
isWeird(other: Weird): boolean
A function that triggers the case where the autolinker doesn't find the referenced class type
isBuffer(buf: (Buffer | string), size: [number]): boolean
This method takes a Buffer object that will be linked to nodejs.org
isArrayOfBuffers(buffers: Array<Buffer>): number
This method takes an array of buffers and counts them
MAGIC_NUMBER
A magic number that identifies this Klass.
event
Klass event

Instance members

Method
Description
getFoo: Number
Get this Klass's foo
withOptions(options: Object, otherOptions: ?number)
A function with an options parameter

bar

Get an instance of Klass. Will make a klass instance multiword, like a klass

bar: Klass

Returns

Klass: that class

bar

Rest property function

bar(toys: ...Number): undefined

Parameters

  1. toys (...Number):

Returns

undefined: nothing

bar

Get an instance of Klass. Will make a klass instance multiword, like a klass. This needs a number input.

Returns

undefined: nothing

Foo

This is Foo

new Foo

Instance members

Method
Description
bar
This is bar