abstract class Redoc::Type

Overview

Represents all types in a Crystal library. This is mainly used internally in Redoc for transformation and type resolution.

Included Modules

Direct Known Subclasses

Defined in:

redoc/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def doc : String | Nil #

[View source]
def doc=(doc : String | Nil) #

[View source]
def summary : String | Nil #

[View source]
def summary=(summary : String | Nil) #

[View source]
def top_level=(top_level : Bool) #

Whether the type is defined in the top-level namespace.


[View source]
def top_level? : Bool #

Whether the type is defined in the top-level namespace.


[View source]