Sam::Args
Inherits Reference < Object
This class presents container for the task arguments. It can handle named arguments and raw array of arguments.
Now it supports only String, Int32 and Float64 as value types. To get access to named argument you
can use [](name : String) and []?(name : String) methods. For raw attributes there are [](index : Int32)
and []?(index : Int32) as well.
Constructors
new(args : Array(String))
Sourcenew(_named_args : AllowedHash, _arr = [] of AllowedTypes)
Sourcenew
SourceInstance methods
[](index : Int32)
Source[](name : String | Symbol)
Source[]?(index : Int32) : AllowedTypes | Nil
Source[]?(name : String | Symbol) : AllowedTypes | Nil
Sourcenamed
Sourceraw
Sourcesize
Source