Class: YARD::Minitest::BlockHandler
- Inherits:
-
Handlers::Ruby::Base
- Object
- Handlers::Ruby::Base
- YARD::Minitest::BlockHandler
- Defined in:
- lib/yard/minitest/block_handler.rb
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/yard/minitest/block_handler.rb', line 6 def process subject = YARD::Registry.at(namespace.name.to_s.sub(/Test$/, '')) (subject[:tests] ||= []) << { description: statement.parameters.first.jump(:string_content).source, file: parser.file, line: statement.line, source: statement.block[1].source } end |