Object
# File lib/syckle/cycles.rb, line 22 def initialize(name, &block) @name = name.to_sym @cycles = [] instance_eval(&block) if block end
# File lib/syckle/cycles.rb, line 29 def cycle(*phases) @cycles << phases.map{ |s| s.to_sym } end
# File lib/syckle/cycles.rb, line 34 def cycle_with_phase(phase) cycles.find{ |c| c.include?(phase.to_sym) } end
[Validate]
Generated with the Darkfish Rdoc Generator 2.