bolshakov / stoplight

:traffic_light: Traffic control for code.

Home Page:http://bolshakov.github.io/stoplight/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)