Notifications should be generated with a lambda
tfausak opened this issue · comments
Currently notifications are generated with String#%
.
format % message
Even if the changes suggested by #41 are implemented, they will still be generated with #%
.
format % [light.name, from_color, to_color]
It would be much more robust to call a lambda with the same parameters to generate the message.
format_lambda.call(light, from_color, to_color)