Skip to content

Commit

Permalink
Merge pull request #2 from mschneider/patch-1
Browse files Browse the repository at this point in the history
fixed display of code in README.rdoc
  • Loading branch information
Avdi Grimm committed Jul 2, 2012
2 parents 36b9160 + 03cc834 commit cdf8590
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rdoc
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ easy to give an object different personalities depending on the state it is in.


state :proceed, :default => true do state :proceed, :default => true do
handle :color do handle :color do
"green" "green"
end end
transition :to => :caution, :on => :cycle! transition :to => :caution, :on => :cycle!
end end


state :caution do state :caution do
handle :color do handle :color do
"yellow" "yellow"
end end
transition :to => :stop, :on => :cycle! transition :to => :stop, :on => :cycle!
end end


state :stop do state :stop do
handle :color do handle :color do
"red" "red"
end end
transition :to => :proceed, :on => :cycle! transition :to => :proceed, :on => :cycle!
end end
Expand Down

0 comments on commit cdf8590

Please sign in to comment.