Module: TimeoutErrors

Extended by:
TimeoutErrors
Included in:
TimeoutErrors
Defined in:
lib/timeout_errors.rb,
lib/timeout_errors/version.rb

Constant Summary collapse

VERSION =
"1.0.0"

Instance Method Summary collapse

Instance Method Details

#===(other) ⇒ Object



11
12
13
# File 'lib/timeout_errors.rb', line 11

def ===(other)
  errors.any? { |error| error === other }
end

#include_error(error) ⇒ Object



7
8
9
# File 'lib/timeout_errors.rb', line 7

def include_error(error)
  errors << error
end