Sha256: 6b2486bd0436ce9acdc0a3acad9b99fd6052347c4d245a289c59d3f2844be658

Contents?: true

Size: 544 Bytes

Versions: 18

Compression:

Stored size: 544 Bytes

Contents

# STALE. Use FormElementsFomrBuilder
module KirguduBase
	module DynamicPages
		class FormPropertiesBlockBuilder < ::KirguduBase::DynamicPages::Builder

			def initialize(&block)
				@properties = {}
				@elements = []
				super(&block)
			end

			def property(name, &block)
				p = ::KirguduBase::DynamicPages::FormPropertyBuilder.new(name, &block).to_element
				raise "Duplicate Property with name: #{p.name}" if @properties[p.name]
				@properties[p.name] = p
				@elements << p
			end

			def to_elements
				@elements
			end
		end
	end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
kirgudu_base-0.0.21 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.19 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.18 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.17 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.16 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.15 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.14 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.13 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.12 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.11 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.10 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.9 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.8 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.7 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.6 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.5 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.4 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb
kirgudu_base-0.0.3 app/models/kirgudu_base/dynamic_pages/form_properties_block_builder.rb