module CommandKit::Commands::ParentCommand
Allows a command to be aware of it's parent command.
Attributes
parent_command[R]
The parent command instance.
@return [Object<Commands>]
@api semipublic
Public Class Methods
new(parent_command: , **kwargs)
click to toggle source
Initializes the command and sets {#parent_command}.
@api public
Calls superclass method
# File lib/command_kit/commands/parent_command.rb, line 20 def initialize(parent_command: , **kwargs) @parent_command = parent_command super(**kwargs) end