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