module RSpec::Core::Example::Procsy

@private

Attributes

metadata[R]

Public Class Methods

extended(object) click to toggle source

@private @param [Proc] Adds a `run` method to the extended Proc, allowing it to be invoked in an [around](../RSpec::Core::Hooks#around) hook using either `run` or `call`.

# File lib/rspec/core/example.rb, line 125
def self.extended(object)
  def object.run; call; end
end

Public Instance Methods

with(metadata) click to toggle source

@private

# File lib/rspec/core/example.rb, line 130
def with(metadata)
  @metadata = metadata
  self
end