mixto

WebJar for mixto

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

mixto
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

mixto
WebJar for mixto
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/atom/mixto

Download mixto

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/mixto/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>mixto</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/mixto/
implementation 'org.webjars.npm:mixto:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/mixto/
implementation ("org.webjars.npm:mixto:1.0.0")
'org.webjars.npm:mixto:jar:1.0.0'
<dependency org="org.webjars.npm" name="mixto" rev="1.0.0">
  <artifact name="mixto" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='mixto', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "mixto" % "1.0.0"
[org.webjars.npm/mixto "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Mixto: A simple mixin superclass Build Status

To create a mixin, subclass mixto:

Mixin = require 'mixto'

class MyMixin extends Mixin
  @classMethod: -> console.log("foo")
  instanceMethod: -> console.log("bar")

Then mix into classes with .includeInto:

class MyClass
  MyMixin.includeInto(this)
  
MyClass.classMethod()
(new MyClass).instanceMethod()

Or extend individual objects with .extend:

myObject = {a: 1, b: 2}
MyMixin.extend(myObject)
myObject.instanceMethod()

Or build standalone instances of your 'mixin':

standalone = new MyMixin
standalone.instanceMethod()
org.webjars.npm

Atom

Free and open source text editor, brought to you by GitHub

Versions

Version
1.0.0