module Larynx class Form < Application include Fields def self.setup(&block) @@setup = block end def run instance_eval &@@setup if @@setup next_field end def restart_form @current_field = 0 run end end end