Module: Commander::Methods
- Includes:
- Delegates, UI, UI::AskForClass
- Defined in:
- lib/commander/methods.rb
Overview
Methods
The primary entry point for adding Commander's DSL to an object.
Bundles Commander::UI (terminal output/prompting helpers),
Commander::UI::AskForClass (the ask_for_* family of methods), and
Commander::Delegates (the +command+/+program+/+run!+ DSL) into a
single mixin. require 'commander/import' includes this into
the top-level Object; embedders typically include it directly instead.
When connected to a sufficiently wide terminal, also configures HighLine to wrap output five columns short of the terminal width.
Constant Summary
Constants included from UI::AskForClass
UI::AskForClass::DEPRECATED_CONSTANTS
Method Summary
Methods included from Delegates
Methods included from UI::AskForClass
#method_missing, #respond_to_missing?
Methods included from UI
applescript, ask_editor, available_editor, choose, color, converse, enable_paging, io, log, password, progress, replace_tokens, say_error, say_ok, say_warning, speak
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Commander::UI::AskForClass