Class: RSpec::Distrib::SharedExampleGroupInclusionStackFrame Private
- Inherits:
-
Object
- Object
- RSpec::Distrib::SharedExampleGroupInclusionStackFrame
- Defined in:
- lib/rspec/distrib/example_group.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Objects that mimic an RSpec::Core::SharedExampleGroupInclusionStackFrame on the Reporters.
This is necessary because the original object refers to objects which can’t be accessed on the leader.
Instance Attribute Summary collapse
- #description ⇒ Object readonly private
- #formatted_inclusion_location ⇒ Object readonly private
- #inclusion_location ⇒ Object readonly private
- #shared_group_name ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(frame) ⇒ SharedExampleGroupInclusionStackFrame
constructor
private
A new instance of SharedExampleGroupInclusionStackFrame.
Constructor Details
#initialize(frame) ⇒ SharedExampleGroupInclusionStackFrame
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SharedExampleGroupInclusionStackFrame.
216 217 218 219 220 221 |
# File 'lib/rspec/distrib/example_group.rb', line 216 def initialize(frame) @shared_group_name = frame.shared_group_name.to_s @inclusion_location = frame.inclusion_location @formatted_inclusion_location = frame.formatted_inclusion_location @description = frame.description end |
Instance Attribute Details
#description ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
214 215 216 |
# File 'lib/rspec/distrib/example_group.rb', line 214 def description @description end |
#formatted_inclusion_location ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
214 215 216 |
# File 'lib/rspec/distrib/example_group.rb', line 214 def formatted_inclusion_location @formatted_inclusion_location end |
#inclusion_location ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
214 215 216 |
# File 'lib/rspec/distrib/example_group.rb', line 214 def inclusion_location @inclusion_location end |
#shared_group_name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
214 215 216 |
# File 'lib/rspec/distrib/example_group.rb', line 214 def shared_group_name @shared_group_name end |