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 ( = {}) = { :actions => [], :conditions => [] }.merge() self.actions, self.conditions = [:actions], [:conditions] #Tracks current target. @active_target = nil end |