Class methods in Coffeescript

Updated . Posted . Visible to the public.

How to define and call class methods in CoffeeScript classes:

class Foo

  @classMethod: -> 
    @otherClassMethod()
  
  instanceMethod: ->
    @otherInstanceMethod()
    @constructor.classMethod()
Henning Koch
Last edit
Henning Koch
Keywords
access, oop
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2013-12-10 19:48)