Skip to content

struct Athena::Framework::Arguments::ArgumentMetadata(T)
inherits Struct #

Represents a controller action argument. Stores metadata associated with it, such as its name, type, and default value if any.

Constructors#

.new(name : String, has_default : Bool, is_nilable : Bool = false, default : T? = nil, type : T.class = T) #

View source

Methods#

#default #

The default value of the argument, if any.

See ATH::Arguments::Resolvers::DefaultValue.

View source

#has_default? #

If this argument has a default value.

View source

#name #

The name of the argument.

View source

#nilable? #

If nil is a valid argument for the argument.

View source

#type #

The type of the parameter, i.e. what its type restriction is.

View source