ruby/test/test_generator.rb

5 строки
158 B
Ruby

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