# HG changeset patch # User Michael Granger # Date 1632276437 25200 # Tue Sep 21 19:07:17 2021 -0700 # Node ID 5288f97c5f438499fb0ac1b707d2c139499eeac8 # Parent cabd6c2a035b67453ccaa0b524deb6779b1c3482 Allow the State event callback to accept additional arguments. diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -1,5 +1,6 @@ html/ docs/ +coverage/ spec/\.status \.devel$ \.lock$ diff --git a/lib/pushdown/state.rb b/lib/pushdown/state.rb --- a/lib/pushdown/state.rb +++ b/lib/pushdown/state.rb @@ -107,7 +107,7 @@ ### Event callback -- called by the automaton when its #on__event method ### is called. This method can return a Transition or a Symbol which maps to one. - def on_event( event ) + def on_event( event, *args ) return nil # no-op end