Foo

Foo

Represents all foos If the '@examples' path is a directory, it's assumed to contain examples files for each function, named as '.js'

Constructor

new Foo(num)

Source:

Start with a number

Example
// this is how to instantiate
let foo = new Foo(2)
Parameters:
Name Type Description
num *

a number

Methods

bar(str)

Source:

What is the bar of str?

Example
// This is a simple example
let foo = new Foo(1)
let result = foo.bar('hi')
// <= "hi1"
Parameters:
Name Type Description
str *

reset(num)

Source:

Resets this.num

Example
let foo = new Foo(1)
foo.reset(1)
Parameters:
Name Type Description
num *