Skip to content

Commit

Permalink
func doc added to web3-core.rst exexamplee
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed May 8, 2019
1 parent 846b489 commit 801abcb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/web3-core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,18 @@ Example
-------

.. code-block:: javascript
import {AbstractWeb3Module} from 'web3-core';
class Example extends AbstractWeb3Module {
/**
* @param {AbstractSocketProvider|HttpProvider|CustomProvider|String} provider
* @param {AbstractMethodFactory} methodFactory
* @param {Web3ModuleOptions} options
* @param {Net.Socket} nodeNet
*
* @constructor
*/
constructor(provider, net, methodFactory, options) {
super(provider, net, methodFactory, options;
}
Expand Down

0 comments on commit 801abcb

Please sign in to comment.