Module: Commander::Delegates
- Included in:
- Methods
- Defined in:
- lib/commander/delegates.rb
Overview
Delegates
Mixed into Commander::Methods to expose the singleton
Commander::Runner instance's DSL (+command+, program, run!, etc.)
as top-level methods, so scripts can call them directly instead of
reaching through Commander::Runner.instance.
Instance Method Summary collapse
-
#defined_commands ⇒ Object
Delegates to Commander::Runner#commands, returning the hash of registered command name => Commander::Command pairs.