enum Tabular::Kind

Overview

Specifiers that determine the functionality of a [Tablet][Tabular::Tablet].

Defined in:

tabular/enums.cr

Enum Members

Option = 1

Specifies that a [Tablet][Tabular::Tablet] represents an [#option][Tabular::Habit#option] parameter.

Argument = 2

Specifies that a [Tablet][Tabular::Tablet] represents an [argument][Tabular::Habit#argument] parameter.

Command = 3

Specifies that a [Tablet][Tabular::Tablet] represents an [subcommand][Tabular::Habit#subcommand] parameter.

Instance Method Summary

Instance Method Detail

def argument? #

Returns true if this enum value equals Argument


[View source]
def command? #

Returns true if this enum value equals Command


[View source]
def directives #

Returns the default [Directive][Tabular::Directive] of the [Kind][Tabular::Kind].

  • [Argument][Tabular::Kind::Argument] — [None][Tabular::Directive::None]
  • All others — [NoFile][Tabular::Directive::NoFile]

[View source]
def option? #

Returns true if this enum value equals Option


[View source]
def runnable? #

Returns true if the [Tablet][Tabular::Tablet] represented by the [Kind][Tabular::Kind] should hand control back to the CLI when matched. Only [Command][Tabular::Kind::Command] is runnable.


[View source]