Method: YARD::Tags::MacroDirective#call

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

#callObject

Raises:

Since:

  • 0.7.0


251
252
253
254
255
256
257
258
259
# File 'lib/yard/tags/directives.rb', line 251

def call
  raise TagFormatError if tag.name.nil? && tag.text.to_s.empty?
  unless macro_data = find_or_create
    warn
    return
  end

  self.expanded_text = expand(macro_data)
end