Class: Ruptr::Compat::RSpec::Example
- Inherits:
-
Object
- Object
- Ruptr::Compat::RSpec::Example
- Includes:
- Element
- Defined in:
- lib/ruptr/rspec/example_group.rb
Constant Summary
Constants included from Element
Ruptr::Compat::RSpec::Element::DEFAULT_METADATA
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(label:, metadata:, block:) ⇒ Example
constructor
A new instance of Example.
Constructor Details
#initialize(label:, metadata:, block:) ⇒ Example
Returns a new instance of Example.
34 35 36 37 38 |
# File 'lib/ruptr/rspec/example_group.rb', line 34 def initialize(label:, metadata:, block:) @label = label @metadata = @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
40 41 42 |
# File 'lib/ruptr/rspec/example_group.rb', line 40 def block @block end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
40 41 42 |
# File 'lib/ruptr/rspec/example_group.rb', line 40 def label @label end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
40 41 42 |
# File 'lib/ruptr/rspec/example_group.rb', line 40 def @metadata end |