Module RSpec::Core::Extensions::InstanceEvalWithArgs
In: lib/rspec/core/extensions/instance_eval_with_args.rb

@private

Methods

Public Instance methods

@private

Used internally to support `instance_exec` in Ruby 1.8.6.

based on Bounded Spec InstanceExec (Mauricio Fernandez) eigenclass.org/hiki/bounded+space+instance_exec

  • uses singleton_class instead of global InstanceExecHelper module
  • this keeps it scoped to classes/modules that include this module
  • only necessary for ruby 1.8.6

[Validate]