Class: YardMiniTestSpecDescribeHandler

Inherits:
YARD::Handlers::Ruby::Base
  • Object
show all
Defined in:
lib/yard-minitest-spec/handler.rb

Overview

This class handles define statements

Instance Method Summary collapse

Instance Method Details

#processObject

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