Say I have a Coffeescript class:
class Foo
MyMethodsBar: () => "bar"
MyMethodsBaz: () => "baz"
Is there any way to encapsulate methods like this (not working):
class Foo
MyMethods:
bar: () => "bar"
baz: () => "baz"
So I can call:
f = new Foo()
f.MyMethods.bar()
The problem is that this (or @) is not the instance when I do this like a regular method.
I'm trying to do this for cleaner mixins/concerns.
Thanks, Erik