Class: YARD::ActiveSupport::Concern::ClassMethodsHandler
- Inherits:
-
Handlers::Ruby::Base
- Object
- Handlers::Ruby::Base
- YARD::ActiveSupport::Concern::ClassMethodsHandler
- Defined in:
- lib/yard-activesupport-concern.rb
Instance Method Summary collapse
-
#process ⇒ Object
Process any found ‘class_methods` block within a “namespace” scope (class or module).
Instance Method Details
#process ⇒ Object
Process any found ‘class_methods` block within a “namespace” scope (class or module).
29 30 31 32 33 34 35 |
# File 'lib/yard-activesupport-concern.rb', line 29 def process # `statement.last.last` refers to the statements within the block # given to `class_methods`. YARD will parse those and attach any # generated documentation to the current namespace at the class # level (unless overridden with a @!scope directive) parse_block(statement.last.last, namespace: namespace, scope: :class) end |