class RMachine::ChangeStateValueNotifier
Attributes
new_value[R]
state_template[R]
Public Class Methods
new(params)
click to toggle source
# File lib/r_machine/notifiers/change_state_value_notifier.rb, line 5 def initialize(params) @state_template = params[:state_template] @new_value = params[:new_value] end
Public Instance Methods
notify!()
click to toggle source
# File lib/r_machine/notifiers/change_state_value_notifier.rb, line 10 def notify! state_template.state = new_value end