Class: Specdown::ExceptionFacade

Inherits:
Object
  • Object
show all
Defined in:
lib/specdown/readme/exception_facade.rb

Instance Method Summary collapse

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_backtraceObject



12
13
14
# File 'lib/specdown/readme/exception_facade.rb', line 12

def exception_backtrace
  @exception.backtrace
end

#exception_classObject



8
9
10
# File 'lib/specdown/readme/exception_facade.rb', line 8

def exception_class
  @exception.class
end

#exception_messageObject



16
17
18
# File 'lib/specdown/readme/exception_facade.rb', line 16

def exception_message
  @exception.to_s
end

#test_filenameObject



20
21
22
# File 'lib/specdown/readme/exception_facade.rb', line 20

def test_filename
  @readme.file_name
end