class States::Dsl::Choice

Public Class Methods

new(naming) click to toggle source
# File lib/states/dsl/choice.rb, line 4
def initialize(naming)
  @naming = naming
end

Public Instance Methods

next_state(state) click to toggle source
# File lib/states/dsl/choice.rb, line 8
def next_state(state)
  @next_state = @naming.ref(state)
end
serializable_hash() click to toggle source
# File lib/states/dsl/choice.rb, line 12
def serializable_hash
  { "Next" => @next_state }
end