Sha256: 1b8364eb900848edc535aa8ea611a73a26834cd89156a55f8ec288ed837821d5

Contents?: true

Size: 491 Bytes

Versions: 9

Compression:

Stored size: 491 Bytes

Contents

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

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

compiled: |
  var Test, Something;

  Something = {};
  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"
  };
  Something.Test = Test;

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
liquidscript-0.2.1 spec/fixtures/class.generate.yml
liquidscript-0.2.0 spec/fixtures/class.generate.yml
liquidscript-0.1.5 spec/fixtures/class.generate.yml
liquidscript-0.1.4 spec/fixtures/class.generate.yml
liquidscript-0.1.3 spec/fixtures/class.generate.yml
liquidscript-0.1.2 spec/fixtures/class.generate.yml
liquidscript-0.1.1 spec/fixtures/class.generate.yml
liquidscript-0.1.0 spec/fixtures/class.generate.yml
liquidscript-0.0.1 spec/fixtures/class.generate.yml