Parent

Syckle::LifeCycle

LifeCycle

Attributes

cycles[R]

Public Class Methods

new(name, &block) click to toggle source
# File lib/syckle/cycles.rb, line 22
def initialize(name, &block)
  @name     = name.to_sym
  @cycles   = []
  instance_eval(&block) if block
end

Public Instance Methods

cycle(*phases) click to toggle source
# File lib/syckle/cycles.rb, line 29
def cycle(*phases)
  @cycles << phases.map{ |s| s.to_sym }
end
cycle_with_phase(phase) click to toggle source
# 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.