Sha256: 247f73823473309ee2c4bc3abd6bc604f031a7d91cc18c0fad6826a7b36e61d7
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true module DynamicScaffold module Form module Item class Block < Base def initialize(config, type, name, options = {}, &block) super(config, type, name, options) @block = block end def render(view, form, classnames = nil) view.instance_exec(form, self, classnames, &@block) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dynamic_scaffold-2.0.1 | lib/dynamic_scaffold/form/item/block.rb |
dynamic_scaffold-2.0.0 | lib/dynamic_scaffold/form/item/block.rb |