lib/simplestate/null_state.rb in simplestate-2.0.11 vs lib/simplestate/null_state.rb in simplestate-2.0.12

- old
+ new

@@ -1,28 +1,16 @@ -class NullState - # Avoid chicken and egg problem by mimicing rather than inheriting from State - - attr_reader :holder - def initialize(holder:, opts: {}) - @holder = holder - @holder.__send__(:add_state, self) - end - +class NullState < State def name 'NullState' end alias :to_s :name - def symbol - :NullState + private + def transition_to(state) end - private - def transition_to(state) - end + def enter + end - def enter - end - - def exit - end + def exit + end end