Object | +--YARD::Tag
name [R]
tag_name [R]
text [R]
types [R]
Creates a new tag object with a tag name and text. Optionally, formally declared types and a key name can be specified.
Types are mainly for meta tags that rely on type information, such as param, return, etc.
Key names are for tags that declare meta data for a specific key or name, such as param, raise, etc.
| Array |
extract_name_from_text(text)
Extracts the name from raw tag text returning the name and remaining value . |
| Array |
extract_types_from_text(text)
Extracts the type signatures from the raw tag text . |
| Tag |
parse_tag(tag_name, text)
Parses tag text and creates a new tag with descriptive text . |
| Tag |
parse_tag_with_name(tag_name, text)
Parses tag text and creates a new tag with a key name and descriptive text . |
| Tag |
parse_tag_with_types(tag_name, text)
Parses tag text and creates a new tag with formally declared types and . |
| Tag |
parse_tag_with_types_and_name(tag_name, text)
Parses tag text and creates a new tag with formally declared types, a key . |
| Object |
name
Returns the value of attribute name . |
| Object |
name=(value)
Sets the attribute name . |
| Object |
tag_name
Returns the value of attribute tag_name . |
| Object |
tag_name=(value)
Sets the attribute tag_name . |
| Object |
text
Returns the value of attribute text . |
| Object |
text=(value)
Sets the attribute text . |
|
type
Convenience method to access the first type specified . |
|
| Object |
types
Returns the value of attribute types . |
| Object |
types=(value)
Sets the attribute types . |
Extracts the name from raw tag text returning the name and remaining value
Extracts the type signatures from the raw tag text
Parses tag text and creates a new tag with descriptive text
Parses tag text and creates a new tag with a key name and descriptive text
Parses tag text and creates a new tag with formally declared types and descriptive text
Parses tag text and creates a new tag with formally declared types, a key name and descriptive text
Returns the value of attribute name
Sets the attribute name
Returns the value of attribute tag_name
Sets the attribute tag_name
Returns the value of attribute text
Sets the attribute text
Convenience method to access the first type specified. This should mainly be used for tags that only specify one type.
Returns the value of attribute types
Sets the attribute types