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