Sha256: e2105b7f0d5fd1a8fd52e573590e2f80b16be2a896b9cf14a491bc2adf20ee01

Contents?: true

Size: 683 Bytes

Versions: 7

Compression:

Stored size: 683 Bytes

Contents

data: |
  module Something {
    class Test {
      wee: -> {
        console.log(2)
      }

      initialize: -> {
        "this should be init"
      }

      this.test: -> {
        "class method!"
      }
    }
  }

  module.exports = Something

compiled: |
  var Something, Test;

  Something = Something || {};
  Test = Test || function Test() {
    if(this.initialize) {
      this.initialize.apply(this, arguments);
    }
  }

  Test.prototype.wee = function() {
    console.log(2);
  };

  Test.prototype.initialize = function() {
    "this should be init";
  };

  Test.test = function() {
    "class method!";
  };
  Something.Test = Test;

  module.exports = Something;

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
liquidscript-0.7.12 spec/fixtures/class.generate.yml
liquidscript-0.7.11 spec/fixtures/class.generate.yml
liquidscript-0.7.10 spec/fixtures/class.generate.yml
liquidscript-0.7.9 spec/fixtures/class.generate.yml
liquidscript-0.7.8 spec/fixtures/class.generate.yml
liquidscript-0.7.7 spec/fixtures/class.generate.yml
liquidscript-0.7.6 spec/fixtures/class.generate.yml