class Toka::Option

Overview

Run-time structure to describe an available option.

Defined in:

toka/toka_option.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, long_names : Array(String), short_names : Array(Char), value_name : String, description : Nil | String, category : Nil | String, has_value : Bool) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def category : String | Nil #

[View source]
def description : String | Nil #

[View source]
def has_value? : Bool #

[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def long_names : Array(String) #

[View source]
def name : String #

[View source]
def short_names : Array(Char) #

[View source]
def value_name : String #

[View source]