Class: RSpec::Hermetic::Evaluation::Example
- Inherits:
-
Struct
- Object
- Struct
- RSpec::Hermetic::Evaluation::Example
- Defined in:
- lib/rspec/hermetic/evaluation.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
-
#full_description ⇒ Object
Returns the value of attribute full_description.
-
#location ⇒ Object
Returns the value of attribute location.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
13 14 15 |
# File 'lib/rspec/hermetic/evaluation.rb', line 13 def block @block end |
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
14 15 16 |
# File 'lib/rspec/hermetic/evaluation.rb', line 14 def exception @exception end |
#full_description ⇒ Object
Returns the value of attribute full_description
13 14 15 |
# File 'lib/rspec/hermetic/evaluation.rb', line 13 def full_description @full_description end |
#location ⇒ Object
Returns the value of attribute location
13 14 15 |
# File 'lib/rspec/hermetic/evaluation.rb', line 13 def location @location end |
#metadata ⇒ Object
Returns the value of attribute metadata
13 14 15 |
# File 'lib/rspec/hermetic/evaluation.rb', line 13 def @metadata end |
Instance Method Details
#message(_text) ⇒ Object
27 |
# File 'lib/rspec/hermetic/evaluation.rb', line 27 def (_text); end |
#reporter ⇒ Object
23 24 25 |
# File 'lib/rspec/hermetic/evaluation.rb', line 23 def reporter self end |
#run ⇒ Object
16 17 18 19 20 21 |
# File 'lib/rspec/hermetic/evaluation.rb', line 16 def run block.call rescue StandardError => error @exception = error raise end |