Skip to content

class Crystal::Doc::Macro
inherits Reference

Included modules

Crystal::Doc::Item

Class methods

.new(generator : Generator, type : Type, macro __arg0 : Crystal::Macro)

View source

Methods

#abstract?

View source

#anchor

View source

#annotations(annotation_type)

View source

#arg_to_s(arg : Arg, io : IO) : Nil

View source

#args

View source

#args_to_html

View source

#args_to_s

View source

#args_to_s(io : IO) : Nil

View source

#doc_copied_from

View source

#has_args?

View source

#html_id

View source

#kind

View source

#location

View source

#must_be_included?

View source

#name

View source

#prefix

View source

#to_json(builder : JSON::Builder)

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 : Type

View source