Sha256: bf43d5fcdff9187da7924610463dddb9603160a070ec19a5fb8419c6c4199a8f

Contents?: true

Size: 501 Bytes

Versions: 11

Compression:

Stored size: 501 Bytes

Contents

require "dry-container"
require "formalist/elements/attr"
require "formalist/elements/compound_field"
require "formalist/elements/field"
require "formalist/elements/group"
require "formalist/elements/many"
require "formalist/elements/section"

module Formalist
  class Elements
    extend Dry::Container::Mixin

    register :attr, Attr
    register :compound_field, CompoundField
    register :field, Field
    register :group, Group
    register :many, Many
    register :section, Section
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
formalist-0.6.0 lib/formalist/elements.rb
formalist-0.5.4 lib/formalist/elements.rb
formalist-0.5.3 lib/formalist/elements.rb
formalist-0.5.2 lib/formalist/elements.rb
formalist-0.5.1 lib/formalist/elements.rb
formalist-0.5.0 lib/formalist/elements.rb
formalist-0.4.2 lib/formalist/elements.rb
formalist-0.4.1 lib/formalist/elements.rb
formalist-0.4.0 lib/formalist/elements.rb
formalist-0.3.0 lib/formalist/elements.rb
formalist-0.2.3 lib/formalist/elements.rb