class YARD::Tags::Tag
def initialize(tag_name, text, types = nil, name = nil)
-
name
(String
) -- optional key name which the tag refers to -
types
(Array
) -- optional type list of formally declared types -
text
(String
) -- the descriptive text for this tag -
tag_name
() -- the tag name to create the tag for
def initialize(tag_name, text, types = nil, name = nil) @tag_name, @text, @name, @types = tag_name.to_s, text, name, (types ? [types].flatten.compact : nil) end
def type
- See: #types -
Returns:
-
(String)
- the first of the list of specified types
def type types.first end