struct Athena::Routing::Arguments::ArgumentMetadata(T)
- Athena::Routing::Arguments::ArgumentMetadata(T)
- Struct
- Value
- Object
Overview
Represents a controller action argument. Stores metadata associated with it, such as its name, type, and default value if any.
Defined in:
arguments/argument_metadata.crConstructors
Instance Method Summary
-
#default : T | Nil
The default value of the argument, if any.
-
#has_default? : Bool
If this argument has a default value.
-
#name : String
The name of the argument.
-
#nilable? : Bool
If
nil
is a valid argument for the argument. -
#type : T.class
The type of the parameter, i.e.
Constructor Detail
def self.new(name : String, has_default : Bool, is_nilable : Bool = false, default : T | Nil = nil, type : T.class = T)
#