Sha256: f5be592e4de39880396dcc8180f54c9d5a6b4b4f5585ff09862a05170a66be92

Contents?: true

Size: 358 Bytes

Versions: 19

Compression:

Stored size: 358 Bytes

Contents

module DynamicScaffold
  module Form
    module Item
      class Block < Base
        def initialize(config, type, name, &block)
          super(config, type, name, {})
          @block = block
        end

        def render(view, form, classnames = nil)
          view.instance_exec(form, self, classnames, &@block)
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
dynamic_scaffold-1.8.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.7.1 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.7.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.6.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.5.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.4.3 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.4.2 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.4.1 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.4.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.3.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.2.2 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.2.1 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.2.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.1.4 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.1.3 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.1.2 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.1.1 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.1.0 lib/dynamic_scaffold/form/item/block.rb
dynamic_scaffold-1.0.0 lib/dynamic_scaffold/form/item/block.rb