タグ

ブックマーク / qiita.com/mm-git (1)

  • CoffeescriptのClassの作り方メモ - Qiita

    間違ってそうだけど、メモを残してみる。 :: (ダブルコロン)の意味がprototypeということで追記してみた。 Sample class class Hoge # static public parameter / constants @classParam = "hoge" # Hoge.classParam @CONST = 1 # Hoge.CONST # prototype parameter prototypeParam : 0 # Hoge.prptotype.prototypeParam Hoge::prototypeParam2 = 0 # Hoge.prototype.prototypeParam2 # static private parameter _privateParam = 0 # var _privateParam # static public meth

    CoffeescriptのClassの作り方メモ - Qiita
    taka222
    taka222 2015/02/10
  • 1