Method: Zyps::Behavior#initialize

Defined in:
lib/zyps.rb

#initialize(options = {}) ⇒ Behavior

Takes a hash with these keys and defaults: :actions => [] :conditions => []



311
312
313
314
315
316
317
318
319
# File 'lib/zyps.rb', line 311

def initialize (options = {})
	options = {
		:actions => [],
		:conditions => []
	}.merge(options)
	self.actions, self.conditions = options[:actions], options[:conditions]
	#Tracks current target.
	@active_target = nil
end