Arg multimethod
Methods
- Arg(p:Path) Source: stdlib.ngs:4131
Convert to string, appropriate for using as argument to external process. Automatically called by NGS for syntax
$(mycommand $mypath) # mypath is Path
Example
conf_files = [Path("/usr/local/etc/some.conf"), Path("/etc/some.conf")].filter(Bool(X)) $(ls -l $*conf_files)
- Arg(x:Real) Source: stdlib.ngs:4621
Convert to string, appropriate for using as argument to external process. Automatically called by NGS for syntax
$(mycommand $num) # num is Real
- Arg(x:Int) Source: stdlib.ngs:4625
Convert to string, appropriate for using as argument to external process. Automatically called by NGS for syntax
$(mycommand $num) # num is Int
- Arg(x:Str) Source: stdlib.ngs:4629
Convert to string, appropriate for using as argument to external process. No-op for Str: return the same string. Automatically called by NGS for syntax
$(mycommand $str) # str is Str