Tools for generating a versioned documentation site from YARD docs.
Object representing a Ruby constant.
Each constant has a name and a value. In addition, a constant may have a short description, a full description, and metadata.
#initialize(native:) => Base
#as_json => Hash{String => Object}
Generates a JSON-compatible representation of the constant.
Returns a Hash with the following keys:
Additionally, the returned Hash will conditionally include the following keys, if the constant defines at least one of the corresponding code objects.
#data_path => String
The path to the data file.
#description => String
The full description of the constant, minus the first clause.
The remainder of the constant description, if any, after subtracting the short description (separated by the first paragraph break).
#metadata => Object
Additional metadata tags from the documentation.
#name => String
The full, qualified name of the constant.
#parent_path => String
The path to the defining class or module’s data file.
#short_description => String
A short description of the constant.
The first part of the constant description, separated by the first paragraph break. Typically should fit on a single line of text.
#slug => String
The name of the constant in url-safe format.
#value => String
A String representation of the value of the constant.
Back to Documentation | Versions | 0.2 | Reference | SleepingKingStudios | SleepingKingStudios::Docs | SleepingKingStudios::Docs::Data