Skip to content

class Crystal::Doc::Type
inherits Reference

Included modules

Crystal::Doc::Item

Class methods

.new(generator : Generator, type : Crystal::Type)

View source

Methods

#abstract?

View source

#alias?

View source

#alias_definition

View source

#all_class_methods

View source

#ancestors

View source

#annotations(annotation_type)

View source

#class_methods

View source

#const?

View source

#constants

View source

#constructors

View source

#current?(type)

View source

#enum?

View source

#extended_modules

View source

#formatted_alias_definition

View source

#full_name(io)

View source

#full_name

View source

#full_name_without_type_vars(io)

View source

#full_name_without_type_vars

View source

#html_id

View source

#included_modules

View source

#including_types

View source

#inspect

View source

#inspect(*args, **options)

View source

#instance_methods

View source

#kind

View source
View source

#locations

View source

#lookup_class_method(name)

View source

#lookup_class_method(name, args_size)

View source

#lookup_macro(name, args_size)

View source

#lookup_macro(name)

View source

#lookup_method(name, args_size)

View source

#lookup_method(name)

View source

#lookup_path(path_or_names : Path | Array(String))

View source

#lookup_path(full_path : String)

View source

#macro(a_macro)

View source

#macros

View source

#method(a_def, class_method)

View source

#must_be_included?

View source

#name

View source

#namespace

View source

#nesting

View source

#nil_type?(node : ASTNode)

View source

#node_to_html(node)

View source

#node_to_html(node, io, links = true)

View source

#node_to_html(node : Underscore, io, links = true)

View source

#node_to_html(node : Union, io, links = true)

View source

#node_to_html(node : ProcNotation, io, links = true)

View source

#node_to_html(node : Path, io, links = true)

View source

#node_to_html(node : Generic, io, links = true)

View source

#parents_of?(type)

View source

#path

View source

#path_from(type)

View source

#path_to(filename : String)

View source

#path_to(type : Type)

View source

#program

View source

#program?

View source

#subclasses

View source

#superclass

View source

#superclass_hierarchy

View source

#to_json(builder : JSON::Builder)

View source

#to_json_simple(builder : JSON::Builder)

View source

#to_s

View source

#to_s(*args, **options)

View source

#to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
View source

#type_has_link?(type : Crystal::Type)

View source

#type_has_link?(type : Crystal::UnionType)

View source

#type_has_link?(type : Crystal::ProcInstanceType)

View source

#type_has_link?(type : Crystal::TupleInstanceType)

View source

#type_has_link?(type : Crystal::GenericInstanceType)

View source

#type_has_link?(type : Crystal::TypeParameter | ASTNode)

View source

#type_to_html(type : Crystal::UnionType, io, text = nil, links = true)

View source

#type_to_html(type : Crystal::ProcInstanceType, io, text = nil, links = true)

View source

#type_to_html(type : Crystal::TupleInstanceType, io, text = nil, links = true)

View source

#type_to_html(type : Crystal::NamedTupleInstanceType, io, text = nil, links = true)

View source

#type_to_html(type : Crystal::GenericInstanceType, io, text = nil, links = true)

View source

#type_to_html(type : Crystal::Type, io, text = nil, links = true)

View source

#type_to_html(type : Crystal::VirtualType, io, text = nil, links = true)

View source

#type_to_html(type : ASTNode, io, text = nil, links = true)

View source

#type_to_html(type : Type, io, text = nil, links = true)

View source

#type_to_html(type)

View source

#type_vars

View source

#types

View source