Class: SleepingKingStudios::Docs::Data::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/sleeping_king_studios/docs/data/base.rb

Overview

This class is abstract.

Base object representing a Ruby object documented in YARD.

Instance Method Summary collapse

Constructor Details

#initialize(native:) ⇒ Base

Returns a new instance of Base.

Parameters:

  • native (YARD::Tags::Tag)

    the YARD object representing the documented object.



14
15
16
17
# File 'lib/sleeping_king_studios/docs/data/base.rb', line 14

def initialize(native:)
  @native   = native
  @registry = SleepingKingStudios::Docs::Registry.instance
end

Instance Method Details

#as_jsonHash

Generates a JSON-compatible representation of the object.

Returns:

  • (Hash)

    the JSON representation.



22
23
24
# File 'lib/sleeping_king_studios/docs/data/base.rb', line 22

def as_json
  {}
end