struct

Ecma335::ApiAttribute

Inherits Struct < Value < Object

A decoded custom attribute. fixed_args are the constructor arguments in declaration order, named_args the FIELD/PROPERTY arguments by name, and value is the legacy single-string rendering kept for display.

Constructors

new(type_name : String, fixed_args : Array(String) = [] of String, named_args : Hash(String, String) = Hash(String, String).new, value : String | Nil = nil)
Source

Instance methods

fixed_arg?(index : Int32) : String | Nil
Source
fixed_args
Source
matches?(name : String) : Bool

Matches the full name, the short name, or the short name without the "Attribute" suffix ("Const" matches "...Metadata.ConstAttribute").

Source
name

Short attribute name without namespace, e.g. "ConstAttribute".

Source
named_arg?(name : String) : String | Nil
Source
named_args
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
type_name
Source
value
Source