Created
October 23, 2013 07:09
-
-
Save CatTail/7113877 to your computer and use it in GitHub Desktop.
Refer to class constructor in static or instance method.
This file contains hidden or 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
| # following class have a very long class name | |
| # and we have a factory method to create instance of this class | |
| # using following strategy to refer to constructor in static or instance method | |
| class first.second.third.longlonglongClassName | |
| constructor: -> | |
| Ctor = @ | |
| @create: -> | |
| new Ctor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment