abstract class Optarg::OptionBase

Direct Known Subclasses

Defined in:

optarg/option_base.cr

Instance Method Summary

Instance methods inherited from class Optarg::Definition

group : Symbol group, key key, matches?(name) matches?, metadata : Metadata metadata, names : Array(String) names, parse(args, data) parse, stops? : Bool stops?, terminates? : Bool terminates?, type type

Constructor methods inherited from class Optarg::Definition

new(names : Array(String), metadata = nil, group = nil, stop = nil, terminate = nil) new

Instance Method Detail

def default #

[View source]
def postset_default_to(data) #

[View source]
def preset_default_to(data) #

[View source]
def validate(data) #

[View source]
def with_default?(&) #

[View source]