Class: MetaMixin

MetaMixin


new MetaMixin()

Used as a manager for Meta object. Not meant to be used directly.

Properties:
Name Type Description
_meta Object

private attribute which holds Meta object

Source:
Example
var MyStamp = stampit().compose(MetaMixin);

Methods


<static> getMeta()

Gets meta from stampit definition.

Source:
Returns:
Type
Meta
Example
var meta = stampit().compose(MetaMixin).getMeta();

<static> setMeta(meta)

Sets meta and returns new stampit definition.

Parameters:
Name Type Description
meta Meta

instance of Meta object

Source:
Returns:
Type
stampit
Example
var MyStamp = stampit().compose(MetaMixin).setMeta({});

getMeta()

Gets meta.

Source:
Returns:
Type
Meta
Example
var MyStamp = stampit().compose(MetaMixin);
var meta = MyStamp().getMeta();

setMeta(meta)

Sets meta.

Parameters:
Name Type Description
meta Meta

instance of Meta object

Source:
Returns:
Type
MetaMixin
Example
var MyStamp = stampit().compose(MetaMixin);
var newObject = MyStamp().setMeta({});