Skip to content
Value objects for length, area, volume and weight.
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
MIT-LICENSE
README
init.rb

README

ScalarTypes
===========

This plugin provides value objects for modelling attributes 
such as length, area, volume and weight. Useful when used 
with ActiveRecord::Aggregations, e.g:

  composed_of :weight, :mapping => [ %w(weight_amount amount), %w(weight_units units)]

Where possible when value objects are multiplied together the appropriate
object is returned, e.g. length * length = area

Copyright (c) 2008 Andrew White, released under the MIT license
Something went wrong with that request. Please try again.