Sha256: 0d3eba9ead2121f8036859ff788f8ed7f45fe0e5b04b33db8261aded831ef682

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 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 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

2 entries across 2 versions & 1 rubygems

Version Path
shimmer-0.0.22 lib/shimmer/form/field.rb
shimmer-0.0.21 lib/shimmer/form/field.rb