lib/finite_machine/catchable.rb in finite_machine-0.11.3 vs lib/finite_machine/catchable.rb in finite_machine-0.12.0
- old
+ new
@@ -1,10 +1,12 @@
-# encoding: utf-8
+# frozen_string_literal: true
module FiniteMachine
# A mixin to allow for specifying error handlers
module Catchable
-
+ # Extends object with error handling methods
+ #
+ # @api private
def self.included(base)
base.module_eval do
attr_threadsafe :error_handlers, default: []
end
end