Sha256: 268a48a3fb4be520f7653042ca8d9971bf7ba90e143a989a22fe960b9a52b6a2

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
larynx-0.1.0 lib/larynx/form.rb