Class: YARD::Tags::Library
- Inherits:
-
Object
- Object
- YARD::Tags::Library
- Defined in:
- lib/yard-notes.rb
Class Attribute Summary collapse
-
.developers_tags ⇒ Array<Symbol>
Sets the list of tags that are not explicitly defined by the YARD proper, nor by the user on the cammnd line via ‘–tag`.
Instance Method Summary collapse
-
#respond_to?(tag_method) ⇒ Boolean
If tag is missing then auto-define it.
Class Attribute Details
.developers_tags ⇒ Array<Symbol>
Sets the list of tags that are not explicitly defined by the YARD proper, nor by the user on the cammnd line via ‘–tag`. These tags are recorded as “developer’s tags” and not displayed in the general documentation.
22 23 24 |
# File 'lib/yard-notes.rb', line 22 def @developers_tags end |
Instance Method Details
#respond_to?(tag_method) ⇒ Boolean
If tag is missing then auto-define it.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/yard-notes.rb', line 30 def respond_to?(tag_method) if md = /_tag$/.match(tag_method.to_s) tag_name = md.pre_match if /^[A-Z]+$/ =~ tag_name Tags::Library.define_tag(tag_name.to_s.capitalize, tag_name) Tags::Library. |= [tag_name] true else super(tag_method) end else super(tag_method) end end |