module Riffer::Helpers::CallOrValue

Resolves the โ€œProc-or-valueโ€ idiom: if thing is a Proc, calls it (passing context when its arity is non-zero); otherwise returns thing unchanged. When thing is nil, returns default.