enum
Tabular::Kind
Overview
Specifiers that determine the functionality of a [Tablet
][Tabular::Tablet].
Defined in:
tabular/enums.crEnum 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
-
#argument?
Returns
true
if this enum value equalsArgument
-
#command?
Returns
true
if this enum value equalsCommand
- #directives
-
#option?
Returns
true
if this enum value equalsOption
- #runnable?
Instance Method Detail
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]