Skip to content

Instantly share code, notes, and snippets.

@blazes816
Created July 23, 2012 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blazes816/3164650 to your computer and use it in GitHub Desktop.
Save blazes816/3164650 to your computer and use it in GitHub Desktop.
states = {
:foo => :foo,
:bar => :bar,
:baz => :baz
}
def StateMachine
def foo
puts 'foo'
end
end
sm = StateMachine.new()
sm.send(states[:foo])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment