class Sam::Args
- Sam::Args
- Reference
- Object
Overview
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.
Defined in:
sam/args.crConstructors
Instance Method Summary
- #[](index : Int32)
- #[](name : String | Symbol)
- #[]?(index : Int32) : AllowedTypes | Nil
- #[]?(name : String | Symbol) : AllowedTypes | Nil
- #named : Hash(String, Float64 | Int32 | String)
- #raw : Array(Float64 | Int32 | String)
- #size