Sha256: beecea080ab6d5105b38c52062b6761bcd08e4f7e79923e280c6a42f23475e2b

Contents?: true

Size: 383 Bytes

Versions: 10

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

module Shimmer
  module Form
  end
end

require_relative "form/builder"
require_relative "form/field"

Dir["#{File.expand_path("./form", __dir__)}/*"].sort.each do |e|
  require e
  name = e.split("/").last.delete_suffix(".rb")
  next unless name.end_with?("_field")
  Shimmer::Form::Builder.register("Shimmer::Form::#{name.classify}".constantize)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shimmer-0.0.41 lib/shimmer/form.rb
shimmer-0.0.40 lib/shimmer/form.rb
shimmer-0.0.39 lib/shimmer/form.rb
shimmer-0.0.38 lib/shimmer/form.rb
shimmer-0.0.37 lib/shimmer/form.rb
shimmer-0.0.36 lib/shimmer/form.rb
shimmer-0.0.35 lib/shimmer/form.rb
shimmer-0.0.34 lib/shimmer/form.rb
shimmer-0.0.33 lib/shimmer/form.rb
shimmer-0.0.32 lib/shimmer/form.rb