Class: Polytrix::Command::Base
- Inherits:
-
Object
- Object
- Polytrix::Command::Base
- Includes:
- DefaultLogger, Logging, Util::FileSystem
- Defined in:
- lib/polytrix/command.rb
Overview
rubocop:disable ClassLength
Instance Method Summary collapse
-
#initialize(cmd_args, cmd_options, options = {}) ⇒ Base
constructor
Contstructs a new Command object.
Methods included from Util::FileSystem
Methods included from Util::String
Methods included from Util::String::ClassMethods
#ansi2html, #escape_html, #highlight, #slugify
Methods included from DefaultLogger
Methods included from DefaultLogger::ClassMethods
Constructor Details
#initialize(cmd_args, cmd_options, options = {}) ⇒ Base
Contstructs a new Command object.
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/polytrix/command.rb', line 22 def initialize(cmd_args, , = {}) @args = cmd_args @options = @action = .fetch(:action, nil) @help = .fetch(:help, -> { 'No help provided' }) @manifest_file = .fetch('manifest', nil) @loader = .fetch(:loader, nil) @shell = .fetch(:shell) @queue = Queue.new end |