-
-
Save zeffii/9248742 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class nozem | |
constructor: (@var1="def", @var2="def2") -> | |
# yep, can be empty! | |
some_class_func: -> | |
[@var1, @var2] # will return this array | |
some_class_func2: (arg1, arg2) -> | |
@some_class_func() #class methods | |
f = new nozem | |
console.log(f.some_class_func2()) | |
# ["def", "def2"] | |
[am, am2] = f.some_class_func2() | |
console.log("-----#{am} and #{am2}------") | |
# string formatting | |
# -----def and def2------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment