Class: Get
Overview
Main command of Get.
Defined Under Namespace
Classes: Error
Instance Attribute Summary
Attributes inherited from Command
#action, #description, #option_parser, #subcommands, #usage
Instance Method Summary collapse
-
#initialize ⇒ Get
constructor
A new instance of Get.
- #main ⇒ Object
Constructor Details
#initialize ⇒ Get
Returns a new instance of Get.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/get.rb', line 37 def initialize super() do @usage = '-h|-v|(<subcommand> [<subcommand-options])' @description = '' @subcommands = { describe: Describe.instance, commit: Commit.instance, init: Init.instance, license: License.instance, complete: Complete.instance, changelog: Changelog.instance, tree: Tree.instance, } end end |
Instance Method Details
#main ⇒ Object
53 54 55 |
# File 'lib/get.rb', line 53 def main @action.call end |