Sha256: d0034c2ebae9a1e67fbaa86bb78811e885324e3d40046d8faea58d0df41195a1

Contents?: true

Size: 229 Bytes

Versions: 12

Compression:

Stored size: 229 Bytes

Contents

module SimpleForm
  module Inputs
    class BlockInput < Base
      def initialize(builder, block)
        @builder, @block = builder, block
      end

      def input
        template.capture(&@block)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
simple_form-1.0.4 lib/simple_form/inputs/block_input.rb
simple_form-1.0.3 lib/simple_form/inputs/block_input.rb
simple_form-1.2.2 lib/simple_form/inputs/block_input.rb
simple_form-1.0.2 lib/simple_form/inputs/block_input.rb
simple_form-1.2.1 lib/simple_form/inputs/block_input.rb
simple_form-1.0.1 lib/simple_form/inputs/block_input.rb
simple_form-1.2.0 lib/simple_form/inputs/block_input.rb
simple_form-1.1.3 lib/simple_form/inputs/block_input.rb
simple_form-1.1.2 lib/simple_form/inputs/block_input.rb
simple_form-1.1.1 lib/simple_form/inputs/block_input.rb
simple_form-1.1.0 lib/simple_form/inputs/block_input.rb
simple_form-1.0.0 lib/simple_form/inputs/block_input.rb