struct

Ast::Trait

Inherits Ast::TypeDeclaration < Ast::HasTypeParams < Ast::TopLevelItem < IrNode < Struct < Value < Object

Constructors

new(location : Location, name : ::String, type_params : Slice(TypeParameter) | ::Nil = nil, traits : ::Array(Type) | ::Nil = nil, methods : ::Array(AbstractMethod) = [] of AbstractMethod, convention : Convention = nil)
Source
new(location : Location, convention : Convention, name : ::String, type_params : Slice(TypeParameter) | ::Nil = nil, traits : ::Array(Type) | ::Nil = nil, methods : ::Array(AbstractMethod) = [] of AbstractMethod)
Source

Instance methods

methods
Source
methods=(methods : ::Array(AbstractMethod))
Source
to_s(io : IO)

Same as #inspect(io).

Source
type_params
Source
type_params=(type_params : Slice(TypeParameter) | ::Nil)
Source