123456789_123456789_123456789_123456789_123456789_

Class: YARD::Tags::GroupDirective

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Directive
Instance Chain:
self, Directive
Inherits: YARD::Tags::Directive
Defined in: lib/yard/tags/directives.rb

Overview

Note:

A group definition only applies to the scope it is defined in. If a new class or module is opened after the directive, this directive will not apply to methods in that class or module.

Defines a group listing. All methods (and attributes) seen after this directive are placed into a group with the given description as the group name. The group listing is used by templates to organize methods and attributes into respective logical groups. To end a group listing use @!endgroup.

Examples:

# @!group Callbacks

def before_filter; end
def after_filter; end

See Also:

Since:

  • 0.6.0

Parser callbacks

Class Method Summary

Directive - Inherited

Instance Attribute Summary

Directive - Inherited

#expanded_text

Set this field to replace the directive definition inside of a docstring with arbitrary text.

#handler, #object, #tag

Instance Method Summary

Directive - Inherited

#after_parse

Called after parsing all directives and tags in the docstring.

#call

Called when processing the directive.

Constructor Details

This class inherits a constructor from YARD::Tags::Directive

Instance Method Details

#call

Since:

  • 0.6.0

[ GitHub ]

  
# File 'lib/yard/tags/directives.rb', line 129

def call
  return unless handler
  handler.extra_state.group = tag.text
end