Sha256: b4912b35a981f4822de48a47aa90b670d0bc2f7500aa3f21c31b6221aa7469c6

Contents?: true

Size: 649 Bytes

Versions: 18

Compression:

Stored size: 649 Bytes

Contents

module KirguduBase
	module DynamicPages
		class ParentElementBuilder < ::KirguduBase::DynamicPages::Builder





			def initialize(&block)
				raise "Cannot Build Empty Data Source" unless block_given?

				self.builder_options.merge!(
					{
						source: nil,
						name: nil
					}
				)

				super(&block)
			end


			def source(value)
				self.builder_options[:source] = value
			end

			def name(value)
				self.builder_options[:name] = value
			end


			def to_element
				element = ::KirguduBase::DynamicPages::ParentElement.new
				self.build_element(element)
				self.validate_generated_element(element)
				element
			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/parent_element_builder.rb
kirgudu_base-0.0.19 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.18 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.17 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.16 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.15 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.14 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.13 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.12 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.11 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.10 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.9 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.8 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.7 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.6 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.5 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.4 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb
kirgudu_base-0.0.3 app/models/kirgudu_base/dynamic_pages/parent_element_builder.rb