Exception: DeferredException::ExceptionSet
- Inherits:
-
StandardError
- Object
- StandardError
- DeferredException::ExceptionSet
- Defined in:
- lib/deferred_exception/exception_set.rb
Instance Attribute Summary collapse
-
#exceptions ⇒ Object
Returns the value of attribute exceptions.
Instance Method Summary collapse
-
#initialize(exceptions) ⇒ ExceptionSet
constructor
A new instance of ExceptionSet.
- #message ⇒ Object
Constructor Details
#initialize(exceptions) ⇒ ExceptionSet
Returns a new instance of ExceptionSet.
5 6 7 |
# File 'lib/deferred_exception/exception_set.rb', line 5 def initialize(exceptions) self.exceptions = exceptions end |
Instance Attribute Details
#exceptions ⇒ Object
Returns the value of attribute exceptions.
3 4 5 |
# File 'lib/deferred_exception/exception_set.rb', line 3 def exceptions @exceptions end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/deferred_exception/exception_set.rb', line 9 def exceptions.map { |exception| (exception) }.join("\n#{'=' * 5}\n") end |