Class: YARD::ActiveSupport::Concern::IncludedHandler

Inherits:
Handlers::Ruby::Base
  • Object
show all
Defined in:
lib/yard-activesupport-concern.rb

Instance Method Summary collapse

Instance Method Details

#processObject

Process any found ‘included` block within a “namespace” scope (class or module).



14
15
16
17
18
19
20
# File 'lib/yard-activesupport-concern.rb', line 14

def process
  # `statement.last.last` refers to the statements within the block
  # given to `included`. YARD will parse those and attach any generated
  # documentation to the current namespace at the instance level (unless
  # overridden with a @!scope directive)
  parse_block(statement.last.last, namespace: namespace, scope: :instance)
end