Class: Ruptr::Compat::RSpec::Example

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



40
41
42
# File 'lib/ruptr/rspec/example_group.rb', line 40

def block
  @block
end

#labelObject (readonly)

Returns the value of attribute label.



40
41
42
# File 'lib/ruptr/rspec/example_group.rb', line 40

def label
  @label
end

#metadataObject (readonly)

Returns the value of attribute metadata.



40
41
42
# File 'lib/ruptr/rspec/example_group.rb', line 40

def 
  @metadata
end