🎨 group storing arguments in constructor
This commit is contained in:
parent
8e28475dc1
commit
de9337f90c
@ -3,11 +3,11 @@ class Juicescript_lexer {
|
|||||||
CONSTRUCTOR: Return new juicescript lexer for SOURCE with OPTIONS
|
CONSTRUCTOR: Return new juicescript lexer for SOURCE with OPTIONS
|
||||||
*/
|
*/
|
||||||
constructor(source, options){
|
constructor(source, options){
|
||||||
// STORE SOURCE //
|
// STORE ARGUMENTS //
|
||||||
|
// source
|
||||||
this.source = source;
|
this.source = source;
|
||||||
|
|
||||||
|
// io adapter
|
||||||
// STORE IO ADAPTER //
|
|
||||||
this.io = options.io;
|
this.io = options.io;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user