Sha256: cd4d738f6cad912c9ea2b657ac3fd4fb9fa86b1dc59624515ca22c3170ffe6b3

Contents?: true

Size: 445 Bytes

Versions: 3

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

require "clamp/subcommand/execution"

module Clamp
  module Subcommand

    # Subcommand parsing methods.
    #
    module Parsing

      protected

      def parse_subcommand
        return false unless self.class.has_subcommands?
        extend(Subcommand::Execution)
      end

      private

      def default_subcommand_name
        self.class.default_subcommand || request_help
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
clamp-1.3.2 lib/clamp/subcommand/parsing.rb
clamp-1.3.1 lib/clamp/subcommand/parsing.rb
clamp-1.3.0 lib/clamp/subcommand/parsing.rb