Docs

Tools for generating a versioned documentation site from YARD docs.

Class: SleepingKingStudios::Docs::Data::Metadata

Parent Namespace
SleepingKingStudios::Docs::Data
Inherited Classes
SleepingKingStudios::Docs::Data::Base > Object
Defined In
lib/sleeping_king_studios/docs/data/metadata.rb

Table Of Contents

Overview

Object representing the metadata tags for a Ruby module.

Each module can have the following metadata tags:

Other tags are not currently supported.

See Also

Back To Top

Constructor

#initialize(native:) => Base

Inherited From
SleepingKingStudios::Docs::Data::Base

Parameters

Returns

Back To Top

Instance Methods

#abstract => String, nil

Returns the @abstract tag, if any, defined for the module.

Returns

#api => String, nil

Returns the @api tag, if any, defined for the module.

Returns

#as_json => Hash{String => Object}

Generates a JSON-compatible representation of the metadata.

Returns a Hash with zero or more of the following keys:

Returns

#authors => Array<String>

Collects the @author tags defined for the module.

Returns

#deprecated => String, nil

Returns the @deprecated tag, if any, defined for the module.

Returns

#examples => Array<Hash{String => String}>

Collects the @example tags defined for the module.

Each @example tag is represented as a Hash with the following keys:

Returns

#notes => Array<String>

Collects the @note tags defined for the module.

Returns

#see => Array<Hash{String => String}>

Collects the @see tags defined the for the module.

Each @see tag is represented as a Hash with String keys and values, and has at a minimum the ‘text’ key. See the SeeTag#as_json method for details.

Returns

#since => Array<String>

Collects the @since tags defined for the module.

Returns

#todos => Array<String>

Collects the @todo tags defined for the module.

Returns

#versions => Array<String>

Collects the @version tags defined for the module.

Returns

Back To Top


Back to Documentation | Versions | 0.2 | Reference | SleepingKingStudios | SleepingKingStudios::Docs | SleepingKingStudios::Docs::Data