Class: YARD::Tags::OptionTag
Instance Attribute Summary (collapse)
-
- (String) name
inherited
from Tag
A name associated with the tag.
-
- (CodeObjects::Base) object
inherited
from Tag
The associated object.
-
- (Object) pair
Returns the value of attribute pair.
-
- (String) tag_name
inherited
from Tag
The name of the tag.
- - (String?) text inherited from Tag
- - (Array<String>?) types inherited from Tag
Instance Method Summary (collapse)
-
- (OptionTag) initialize(tag_name, name, pair)
constructor
A new instance of OptionTag.
Constructor Details
- (OptionTag) initialize(tag_name, name, pair)
Returns a new instance of OptionTag
6 7 8 9 |
# File 'lib/yard/tags/option_tag.rb', line 6 def initialize(tag_name, name, pair) super(tag_name, nil, nil, name) @pair = pair end |
Instance Attribute Details
- (CodeObjects::Base) object Originally defined in class Tag
Returns the associated object
- (Object) pair
Returns the value of attribute pair
4 5 6 |
# File 'lib/yard/tags/option_tag.rb', line 4 def pair @pair end |