Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eden-class

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eden-class

Eden JS Base Class

  • 0.0.28
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-18.18%
Maintainers
1
Weekly downloads
 
Created
Source

#Class

[DESCRIPTION]

Build Status

General

Installation

npm install eden-class

Usage

var class = require('eden-class');

Methods


argument

 [Argument] argument();

Argument Testing

Parameters
Returns

[Argument]

Example
Code
class().argument();
Outputs
RESULTS

capture

 object capture(Bool);

For Async we lose the protected and private access. This grabs it before it is removed from the scope

Parameters
  1. bool
Returns

object

Example
Code
class().capture();
Outputs
RESULTS

inspect

 this inspect(Mixed, String|null);

Force outputs any class property

Parameters
  1. mixed

  2. string|null

Returns

this

Example
Code
class().inspect();
Outputs
RESULTS

loadState

 this loadState(*string);

Returns a state that was previously saved

Parameters
  1. *string - the state name
Returns

this

Example
Code
class().loadState();
Outputs
RESULTS

loop

 this loop(*function, Integer);

Loops through returned result sets

Parameters
  1. *function

  2. integer

Returns

this

Example
Code
class().loop();
Outputs
RESULTS

on

 this on(*string, *function, Bool);

Attaches an instance to be notified when an event has been triggered

Parameters
  1. *string

  2. *function

  3. bool

Returns

this

Example
Code
class().on();
Outputs
RESULTS

once

  this once(*string, Function);

Attaches an instance to be notified when an event has been triggered, when the event was fired it will be removed on the event stack.

Parameters
  1. *string

  2. function

Returns

this

Example
Code
class().once();
Outputs
RESULTS

saveState

 this saveState(*string, Mixed);

Sets instance state for later usage.

Parameters
  1. *string - the state name

  2. mixed

Returns

this

Example
Code
class().saveState();
Outputs
RESULTS

sync

 [Syncopate] sync(Function);

Starts a synchronous thread

Parameters
  1. function
Returns

[Syncopate]

Example
Code
class().sync();
Outputs
RESULTS

trigger

 this trigger(*string, Mixed[,mixed..]);

Notify all observers of that a specific event has happened

Parameters
  1. *string

  2. mixed[,mixed..]

Returns

this

Example
Code
class().trigger();
Outputs
RESULTS

when

 this when(*mixed, *function);

Invokes Callback if conditional callback is true

Parameters
  1. *mixed

  2. *function

Returns

this

Example
Code
class().when();
Outputs
RESULTS

Keywords

FAQs

Package last updated on 11 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc