Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 4ef4435008
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.331 kB
require 'rubygems'
require 'stateflow'
class Robot
include Stateflow
stateflow do
initial :green
state :green, :yellow, :red
event :change_color do
transitions :from => :green, :to => :yellow
transitions :from => :yellow, :to => :red
transitions :from => :red, :to => :green
end
end
end
Jump to Line
Something went wrong with that request. Please try again.