Module: RSpec::Core::Example::Procsy

Defined in:
lib/rspec/core/example.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



118
119
120
# File 'lib/rspec/core/example.rb', line 118

def 
  @metadata
end

Class Method Details

.extended(object) ⇒ Object

Adds a ‘run` method to the extended Proc, allowing it to be invoked in an [around](../Hooks#around-instance_method) hook using either `run` or `call`.

Parameters:

  • (Proc)


125
126
127
# File 'lib/rspec/core/example.rb', line 125

def self.extended(object)
  def object.run; call; end
end

Instance Method Details

#with(metadata) ⇒ Object



130
131
132
133
# File 'lib/rspec/core/example.rb', line 130

def with()
  @metadata = 
  self
end