Method: YARD::Tags::Directive#initialize

Defined in:
lib/yard/tags/directives.rb

#initialize(tag, parser) ⇒ Directive

Returns a new instance of Directive.

Parameters:

  • tag (Tag)

    the meta-data tag containing all input to the docstring

  • parser (DocstringParser)

    the docstring parser object

Since:

  • 0.8.0


54
55
56
57
58
# File 'lib/yard/tags/directives.rb', line 54

def initialize(tag, parser)
  self.tag = tag
  self.parser = parser
  self.expanded_text = nil
end