Sha256: 84fe23df7af6d5e0ee32a5918ffe302bf09577348d5b9147e69c93e59c30094d

Contents?: true

Size: 397 Bytes

Versions: 3

Compression:

Stored size: 397 Bytes

Contents

module CommandKit
  module Commands
    module ParentCommand

      # The parent command instance.
      #
      # @return [Object<Commands>]
      attr_reader :parent_command

      #
      # Initializes the command and sets {#parent_command}.
      #
      def initialize(parent_command: , **kwargs)
        @parent_command = parent_command

        super(**kwargs)
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
command_kit-0.1.0.rc1 lib/command_kit/commands/parent_command.rb
command_kit-0.1.0.pre2 lib/command_kit/commands/parent_command.rb
command_kit-0.1.0.pre1 lib/command_kit/commands/parent_command.rb