- Simplified the internal
Dish::Plate
method names. - Updated the coercion cache to prevent memory leaks.
Dish::Plate#==
now compares with the original hash, or anything that responds toto_h
.Dish::Plate#hash
is taken from the original hash. This enables usinggroup_by
anduniq
.
- Supports setting values via
some_dish_object.key = 'value'
. - Values are now cached after their first conversion. This improves performance when calling the same methods repeatedly.
- Available keys are returned by the
methods
method on a Dish object. as_hash
is deprecated and renamed toto_h
.- Supports converting the Dish object to json via
to_json
. respond_to?
andrespond_to_missing?
now works correctly.
- Implements
respond_to_missing?
.
- Adds coercion. See the readme for details.
- Adds an
as_hash
method for accessing the original source hash.