State machine YARD plugin for automated documentation