diff options
Diffstat (limited to 'lib/blink/transaction.rb')
-rw-r--r-- | lib/blink/transaction.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/blink/transaction.rb b/lib/blink/transaction.rb index f5252b436..7bf0c8557 100644 --- a/lib/blink/transaction.rb +++ b/lib/blink/transaction.rb @@ -87,6 +87,8 @@ class Transaction @tree = tree @toplevel = false + @triggered = Hash.new(0) + # of course, this won't work on the second run unless defined? @@failures @toplevel = true @@ -132,6 +134,12 @@ class Transaction } end #--------------------------------------------------------------- + + #--------------------------------------------------------------- + def triggered(sub) + @triggered[sub] += 1 + end + #--------------------------------------------------------------- end end #--------------------------------------------------------------- |