Class: YardMiniTestSpecDescribeHandler
- Inherits:
-
YARD::Handlers::Ruby::Base
- Object
- YARD::Handlers::Ruby::Base
- YardMiniTestSpecDescribeHandler
- Defined in:
- lib/yard-minitest-spec/handler.rb
Overview
This class handles define statements
Instance Method Summary collapse
-
#process ⇒ Object
process the define statement.
Instance Method Details
#process ⇒ Object
process the define statement
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/yard-minitest-spec/handler.rb', line 7 def process meth = statement.method_name(true).to_s name = statement.parameters.first.jump(:string_content).source (namespace[:mtsdh] ||= []).push name parse_block(statement.last.last, owner: namespace) namespace[:mtsdh].pop nil rescue YARD::Handlers::Ruby::NamespaceMissingError end |