Hi Herby,

On 8 February 2018 at 03:10, Herbert Vojčík <he...@mailbox.sk> wrote:
> Hi!
>
> Do you think it would be reasonable to have, a la "generate accessors" /
> "generate initialize method", a "generate equality" thingie that would
> generate #= and #hash for the method, mechanically?
>
> Just created a new "piece of data" class and felt like it would be helpful.

The refactoring browser is already capable of generating #= and #hash:


| r |

r := RBGenerateEqualHashRefactoring
        className: MyClass
        variables: #(vars which should be used in equal and hash).
r execute


HTH,
Alistair

Reply via email to