class StrictMachine::TransitionDefinition
Attributes
guard[R]
name[R]
to[R]
Public Class Methods
new(definition)
click to toggle source
# File lib/strict_machine/definition/transition_definition.rb, line 5 def initialize(definition) definition.each_pair do |k, v| if k == :if @guard = v.to_sym else @name = k.to_sym @to = v.to_sym end end end
Public Instance Methods
guarded?()
click to toggle source
# File lib/strict_machine/definition/transition_definition.rb, line 16 def guarded? !@guard.nil? end