Aconcagua extensions

I pushed some Aconcagua extensions to
http://smalltalkhub.com/mc/SeanDeNigris/AconcaguaAddOns/main/

One part consists of tiny (so far) Aconcagua models of various domains -
Time*, Money, and Weight at the moment.

The other is the Aconcagua-Magritte package. This gives you
MAMeasureDescription, which represents an Aconcagua Measure. It mostly acts
like a number field mapped to its amount. You just have to tell it which
unit to use to convert the amount number into a Measure.

Example usage:
	MAMeasureDescription new
		accessor: #replacementPrice;
		label: 'Replacement Price';
		unit: AmDollar new;
		yourself

Then, you can type 100 in a Magritte form and "100 dollars" will be saved to
the model. Enjoy!
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: