Sha256: 9962da3ec4d0194f701d8069986879a21cd9cf39decf98cd8473be9089d8b6d8
Contents?: true
Size: 577 Bytes
Versions: 18
Compression:
Stored size: 577 Bytes
Contents
module KirguduBase module DynamicPages class PropertyEventsBlockBuilder < ::KirguduBase::DynamicPages::Builder def initialize(&block) @events = {} @elements = [] super(&block) end def event(name, &block) p = ::KirguduBase::DynamicPages::EventBuilder.new(name, &block).to_event raise "Duplicate Event with name: #{p.name}" if @events[p.name] @events[p.name] = p @elements << p end def remove_event(name) @events.delete(name) end def from_template(name) end def to_elements @elements end end end end
Version data entries
18 entries across 18 versions & 1 rubygems