Class: RSpec::Core::Example
Class Method Summary collapse
Class Method Details
.new(*arguments, &block) ⇒ Object
244 245 246 247 248 249 250 |
# File 'lib/appmap/rspec.rb', line 244 def self.new(*arguments, &block) warn "Wrapping example_block for #{name}" if AppMap::RSpec::LOG allocate.tap do |obj| arguments[arguments.length - 1] = wrap_example_block(obj, arguments.last) if arguments.last.is_a?(Proc) obj.send :initialize, *arguments, &block end end |