Class: RSpec::Hermetic::Evaluation::Example

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/hermetic/evaluation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



13
14
15
# File 'lib/rspec/hermetic/evaluation.rb', line 13

def block
  @block
end

#exceptionObject (readonly)

Returns the value of attribute exception.



14
15
16
# File 'lib/rspec/hermetic/evaluation.rb', line 14

def exception
  @exception
end

#full_descriptionObject

Returns the value of attribute full_description

Returns:

  • (Object)

    the current value of full_description



13
14
15
# File 'lib/rspec/hermetic/evaluation.rb', line 13

def full_description
  @full_description
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



13
14
15
# File 'lib/rspec/hermetic/evaluation.rb', line 13

def location
  @location
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of 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 message(_text); end

#reporterObject



23
24
25
# File 'lib/rspec/hermetic/evaluation.rb', line 23

def reporter
  self
end

#runObject



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