Object::pr = -> console.log eval("'"+@+"'").toString() console.log '____________________________' @ # 'hello.coffee'.pr() Object::classGet = -> this.constructor.name.toString() There is a classGet () method.
It is called like this.
[].classGet().pr() And he is called like this.
(do [].classGet).pr() How to rewrite the classGet method to call it like this
[].classGet.pr() or so
[].classGet.pr