"Jesús Gabriel y Galán" <jgabrielygalan / gmail.com> wrote in post 969520:
> you can do that easily with method_missing

Thanks. it looks like a promising solution. but I have two more equirements:

1. what if the event name includes a dot '.'?
2. I also want the left value of the equation (metric_A in the example) o be added into the Hash, because it is possible that a new metric eeds to be calculated based on the existing metric.