Sha256: 2bd5a183b33f167ef29b5a0454647219ca042b62818156595d81c265d4bca891

Contents?: true

Size: 657 Bytes

Versions: 17

Compression:

Stored size: 657 Bytes

Contents

# frozen_string_literal: true

module Shimmer
  module Form
    class Field
      class_attribute :type

      attr_reader :builder, :method, :collection, :id_method, :name_method, :options

      class << self
        def can_handle?(method)
          false
        end
      end

      def wrapper_options
        {}
      end

      def prepare
      end

      def initialize(builder:, method:, collection:, id_method:, name_method:, options: {})
        @builder = builder
        @method = method
        @collection = collection
        @id_method = id_method
        @name_method = name_method
        @options = options
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
shimmer-0.0.41 lib/shimmer/form/field.rb
shimmer-0.0.40 lib/shimmer/form/field.rb
shimmer-0.0.39 lib/shimmer/form/field.rb
shimmer-0.0.38 lib/shimmer/form/field.rb
shimmer-0.0.37 lib/shimmer/form/field.rb
shimmer-0.0.36 lib/shimmer/form/field.rb
shimmer-0.0.35 lib/shimmer/form/field.rb
shimmer-0.0.34 lib/shimmer/form/field.rb
shimmer-0.0.33 lib/shimmer/form/field.rb
shimmer-0.0.32 lib/shimmer/form/field.rb
shimmer-0.0.31 lib/shimmer/form/field.rb
shimmer-0.0.30 lib/shimmer/form/field.rb
shimmer-0.0.29 lib/shimmer/form/field.rb
shimmer-0.0.28 lib/shimmer/form/field.rb
shimmer-0.0.27 lib/shimmer/form/field.rb
shimmer-0.0.26 lib/shimmer/form/field.rb
shimmer-0.0.25 lib/shimmer/form/field.rb