struct Cmds::BatchCmd::ParamsCmd

Defined in:

cli/cmds/batch/params_cmd.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(cmd : String) #

[View source]

Class Method Detail

def self.parse?(s : String | Nil) : ParamsCmd | Nil #

[View source]

Instance Method Detail

def clone #

[View source]
def cmd : String #

def copy_with(cmd _cmd = @cmd) #

[View source]
def params : Array(String) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def params=(v : Array(String)) : Array(String) #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def params=(v : Nil) #

nil assignments are always ignored


def params? : Array(String) | Nil #

var foo = Foo.new(self) [name.value.id ] Foo.new(self) [name.value.name] new [name.value.id.stringify.gsub(/.new\b.*$/, "")] "Foo"


def resolve(vals : Hash(String, String)) : String #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]