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

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