Module: Servitium::CaptureExceptionsMixin::ClassMethods
- Defined in:
- lib/servitium/capture_exceptions_mixin.rb
Instance Method Summary collapse
Instance Method Details
#capture_exceptions(value = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/servitium/capture_exceptions_mixin.rb', line 12 def capture_exceptions(value = nil) @capture_exceptions = value if value @capture_exceptions = nil unless defined?(@capture_exceptions) if @capture_exceptions.nil? @capture_exceptions = if superclass < Servitium::Service superclass.capture_exceptions else false end end @capture_exceptions end |