Sha256: 81c963360abe6228ba1b6deacf567f846bab63549580d263694715a9010c9326

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

# BITCHIN SWEET CoffeeScript/_ Mixin capability
module "AS", ->
  class @Mixin
    extends: (klass) ->
      _.extend klass, @class_methods if @class_methods
      _.extend klass::, @instance_methods if @instance_methods
      @mixed_in.call(klass) if @mixed_in

    constructor: (methods) ->
      _.extend this, methods

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alpha-simprini-engine-0.0.4 app/assets/javascripts/alpha_simprini/mixin.coffee
alpha-simprini-engine-0.0.3 app/assets/javascripts/alpha_simprini/mixin.coffee
alpha-simprini-engine-0.0.2 app/assets/javascripts/alpha_simprini/mixin.coffee
alpha-simprini-engine-0.0.1 app/assets/javascripts/alpha_simprini/mixin.coffee