1 2 3 4
require 'pathname' require Pathname.new(__FILE__).dirname.join('inlinetest.rb') target = __FILE__[/test_(.*\.rb)$/, 1] InlineTest.loadtest__END__part(target)