Value objects for length, area, volume and weight.
License
pixeltrix/scalar_types
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
About
Value objects for length, area, volume and weight.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published