Module: Stateflow::Persistence::None::InstanceMethods

Defined in:
lib/stateflow/persistence/none.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stateObject

Returns the value of attribute state.



9
10
11
# File 'lib/stateflow/persistence/none.rb', line 9

def state
  @state
end

Instance Method Details

#load_from_persistenceObject



11
12
13
# File 'lib/stateflow/persistence/none.rb', line 11

def load_from_persistence
  @state
end

#save_to_persistence(new_state, options) ⇒ Object



15
16
17
# File 'lib/stateflow/persistence/none.rb', line 15

def save_to_persistence(new_state, options)
  @state = new_state
end