Closed virtualstaticvoid closed 9 years ago
Hi @geekq
Sorry to bug you. Have you had a chance to review this pull request, and if so could it be merged? It would really be great if conditions could be specified using this technique which is a familiar pattern in Rails.
Thanks
Awesome, thanks for merging!
:+1:
Add the ability to define
if
conditions forevents
using an instance method name symbol, in addition to the already supportedproc
orlambda
way.Here, the
:sufficient_battery_level?
method is invoked when evaluating the condition.