what does a single line like this def cancelled, do: @cancelled do.
this is a single line of code, but don’t understand what it does or how it works. I see lots of code like this. unfortunately, the coders did not see fit to document such likes of code.
here is a complete section as the above:
def cancelled, do: @cancelled
** def completed, do: @completed**
** def reassigned, do: @reassigned**
** def snoozed, do: @snoozed**
** def started, do: @started**
** def new, do: @new**
** def complete_statuses, do: [@completed, @cancelled]**
** def incomplete_statuses, do: [@new, @started, @snoozed, @reassigned]**