You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because boolean tag is such a common pattern, there is a special
BooleanTag class that we can extend. Inside the class we define an
initialize method (a constructor in Ruby world), define some member
variables and call the superclass method to do some additional setup.
@pattern defines a name of a tag to detect inside doc-comments.
@signature defines the labels to display in final documentation.
The following screenshot should clarify the effects of it:
As you can see the :long field defines the longer label to display
after member name, and :short is for the label in dropdown menu.
Just this small label "inner" might not be enough - so continue
with the next chapter to add some additional HTML output.