module Enum::Transitions::Naming
Public Instance Methods
entering_event(state)
click to toggle source
# File lib/enum/transitions/naming.rb, line 12 def entering_event(state) :"#{@config.enum}_entering_#{state}" end
leaving_event(state)
click to toggle source
# File lib/enum/transitions/naming.rb, line 8 def leaving_event(state) :"#{@config.enum}_leaving_#{state}" end
transition_event(source, target)
click to toggle source
# File lib/enum/transitions/naming.rb, line 4 def transition_event(source, target) :"#{@config.enum}_from_#{source}_to_#{target}" end