Class: Specdown::ExceptionFacade
- Inherits:
-
Object
- Object
- Specdown::ExceptionFacade
- Defined in:
- lib/specdown/readme/exception_facade.rb
Instance Method Summary collapse
- #exception_backtrace ⇒ Object
- #exception_class ⇒ Object
- #exception_message ⇒ Object
-
#initialize(exception, readme) ⇒ ExceptionFacade
constructor
A new instance of ExceptionFacade.
- #test_filename ⇒ Object
Constructor Details
#initialize(exception, readme) ⇒ ExceptionFacade
Returns a new instance of ExceptionFacade.
3 4 5 6 |
# File 'lib/specdown/readme/exception_facade.rb', line 3 def initialize(exception, readme) @exception = exception @readme = readme end |
Instance Method Details
#exception_backtrace ⇒ Object
12 13 14 |
# File 'lib/specdown/readme/exception_facade.rb', line 12 def exception_backtrace @exception.backtrace end |
#exception_class ⇒ Object
8 9 10 |
# File 'lib/specdown/readme/exception_facade.rb', line 8 def exception_class @exception.class end |
#exception_message ⇒ Object
16 17 18 |
# File 'lib/specdown/readme/exception_facade.rb', line 16 def @exception.to_s end |
#test_filename ⇒ Object
20 21 22 |
# File 'lib/specdown/readme/exception_facade.rb', line 20 def test_filename @readme.file_name end |