Values
Values copied to clipboard
Simple immutable value objects for ruby (the readme is longer than the code)
Per [HISTORY.md](../blob/e080507589413387b6f9a66b77a38977b769dfdd/HISTORY.md), v1.9.0 was released on Aug 20, 2016. However, there is no existing tag for 1.9 and `gem` is current installing 1.8. Please publish the 1.9 gem. In my...
## Problem The Values gem in Ruby, much like [_case classes_ in Scala](http://docs.scala-lang.org/tutorials/tour/case-classes.html), makes a very sensible and **pragmatic trade-off** in its approach to enforcing immutability: - Value class **instances**...
**NOTE:** Currently this commit is based of of PR #57, but can be separated if necessary. Speed improvements: | When you have... | Delta IPS | | -------------------- | ---------...
This PR is inspired by https://github.com/tcrayford/Values/pull/56, and assumes that code will be merged, so uses it in the benchmarks here: https://gist.github.com/ms-ati/fa8002ef8a0ce00716e9aa6510d3d4d9 It is common in our code, as in any...
I hesitate to make this PR given that part of Values' appeal is its exceptionally small size; so, apologies in advance if the changeset it unwanted, and thanks for taking...
I suggest that there should be a documented best practice for documenting value classes with yard. Requirements: - Works on rubydoc.info for docs - Works in Rubymine for completion -...