module RSpec

def self.current_example


end
end
# ...

example = fetch_current_example.call(self)
c.before(:example) do

proc { RSpec.current_example } : proc { |context| context.example }
fetch_current_example = RSpec.respond_to?(:current_example) ?
# available until RSpec 3.0.
# context.example is deprecated, but RSpec.current_example is not
RSpec.configure do |c|

@example

versions of RSpec 2 and 3.
to the example currently being executed and also want to support all
The primary audience for this method is library authors who need access

The example being executed.
def self.current_example
  thread_local_metadata[:current_example]
end