class Huebot::Program
Constants
- ParallelTransition
- Transition
Attributes
errors[RW]
final_state[RW]
initial_state[RW]
loop[RW]
loop?[RW]
loops[RW]
name[RW]
transitions[RW]
warnings[RW]
Public Class Methods
new()
click to toggle source
# File lib/huebot/program.rb, line 15 def initialize @name = nil @initial_state = nil @transitions = [] @final_state = nil @loop = false @loops = 0 @errors = [] @warnings = [] end
Public Instance Methods
valid?()
click to toggle source
# File lib/huebot/program.rb, line 26 def valid? errors.empty? end