Path: | lib/standard/facets/hash_builder.rb |
Last Update: | Sat Feb 23 07:11:38 +0000 2019 |
HashBuilder takes a procedure and builds a Hash out of it.
The procedure must conform to a set of rules to be useful in this respect. They must either take an argument and use that argument to set values, or if no argument is taken then `instance_eval` is used to evaluate the procedure such that each method represents a key.