Method: YARD::Docstring#has_tag?

Defined in:
lib/yard/docstring.rb

#has_tag?(name) ⇒ Boolean

Returns true if at least one tag by the name name was declared

Parameters:

  • name (String)

    the tag name to search for

Returns:

  • (Boolean)

    whether or not the tag name was declared

[View source]

226
227
228
# File 'lib/yard/docstring.rb', line 226

def has_tag?(name)
  tags.any? {|tag| tag.tag_name.to_s == name.to_s }
end