Module: Toys::DSL

Defined in:
lib/toys-core.rb,
lib/toys/dsl/flag.rb,
lib/toys/dsl/tool.rb,
lib/toys/dsl/internal.rb,
lib/toys/dsl/flag_group.rb,
lib/toys/dsl/positional_arg.rb

Overview

Namespace for DSL classes. These classes provide the directives that can be used in configuration files.

DSL directives that can appear at the top level of Toys files and tool blocks are defined by the Tool module.

Directives that can appear within a block passed to Tool#flag are defined by the Flag class.

Directives that can appear within a Tool#flag_group block or any of its related directives, are defined by the FlagGroup class.

Directives that can appear within a Tool#required_arg, Tool#optional_arg, or Tool#remaining_args block, are defined by the PositionalArg class.

Defined Under Namespace

Modules: Tool Classes: Flag, FlagGroup, PositionalArg