0.0.1-alpha2 • Published 8 years ago

furnace v0.0.1-alpha2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

furnace

WORK IN PROGRESS

Furnace — Furnace is an extremely experimental library for creating composed classes.

Example

furnace
	.define('hasName', () => ({
		schema: {
			name: {
				string: true
			}
		},
		methods: {
			sayHello () {
				console.log(`Hello, I am ${this.name}`);
			}
		}
	}));


var Person = furnace.compile({
	class: true,
	hasName: true,
	schema: {
		age: {
			number: true
		}
	},
	methods: {
		growUp () {
			this.age++;
		}
	}
});

var joe = new Person({
	name: 'Joe',
	age: 24
});

joe.sayHello();
// => "Hello, I am Joe"
0.0.1-alpha2

8 years ago

0.0.1

10 years ago

0.0.0

10 years ago