Method: YARD::Docstring#tag
- Defined in:
- lib/yard/docstring.rb
#tag(name) ⇒ Tags::Tag
Convenience method to return the first tag object in the list of tag objects of that name
208 209 210 |
# File 'lib/yard/docstring.rb', line 208 def tag(name) .find {|tag| tag.tag_name.to_s == name.to_s } end |